Assign role to Visitors
-
[ Moved to the Fixing WordPress sub-forum. ]
Hi,
I would like to assign to my visitors the same role as a suscriber.
So they wont have to login.
If I could see visitors as a role. I could use User Role Editor Plugin to assign suscribers role.
I found this at google<?php global $user_login; if( $user_login ) { echo 'user logged in'; } else { echo 'user not logged in'; } ?>
But don’t know where to put that code. I have a custom plugin that shows search results of schedules only to registered users. So I need assign role to visitors. I’ve been searching for hours.
Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Assign role to Visitors’ is closed to new replies.