- This topic has 3 replies, 3 voices, and was last updated 11 years, 2 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Finding out what user is logged in
How can I find out which user is currently logged in?Does the built-in WordPress get_currentuserinfo(); return this information?
Thanks!
$auth = SwpmAuth::get_instance();
if ($auth->is_logged_in()) {
echo $auth->get('user_name');
}
Excellent just what I needed, thank you.