um_fetch_user() fetches nothing
-
Thanks for the great plugin but please help me out on this
This is the code i have been using in header.php
$user_id = get_current_user_id(); // gets the user id perfectly $um= um_fetch_user( $user_id ); // fetches nothing var_dump($um); // fetches nothing echo $role = get_user_meta( $user_id, 'role', true ); // returns the role i.e member echo um_user('role_name'); // gives nothing echo $n = um_user( 'user_listing_cat1' ); // gives nothing
I have tried using default registration form , custom registration form but nothing works
I have gone through this link completely but didn’t find any solutionhttps://ultimatemember.com/forums/topic/how-to-get-community-role-of-um/
I have set the default user role in ultimate member > settings > Default New User Role as member
member role has been syncronized with a role i.e employer
So please help me out I am struck on this problem for last 4 hours , nothing seems to work
If you need more information please let me know. If you need ftp or wp-admin please give me your email link so that i can message you the details
- The topic ‘um_fetch_user() fetches nothing’ is closed to new replies.