- This topic has 2 replies, 2 voices, and was last updated 11 years, 6 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › How can i show the names of the user when logged in?
When the user logs in i want to show something like …. Welcome to (User’s name) in the header site… and I don’t know how do it…….someone can help me? —- Thanks a lot
you can get user name using this code:
$auth = BAuth::get_instance();
$user_name = $auth->is_logged_in()? $auth->get('user_name'): '';
to show this on the header, you need to edit the theme you are using.
Thanks a lot¡¡