Get user profile with functions.php
-
Before installing ultimate member, this was the code that I was using in my functions.php to allow the user to access his wordpress profile:
function contributor_profile($atts) { if (is_user_logged_in() && !is_feed()) { $userdata = get_userdata( get_current_user_id() ); return ' <span class="profile"><a href="' . admin_url('profile.php') . '">' . ( 'Edit Profile' ) . '</a></span>'; } } add_shortcode('contributor_profile', 'contributor_profile');
But after installing Ultimate Member, the code is only working with the admin account.
I’d like to know how to achieve the same result using Ultimate Member, can you help me out?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Get user profile with functions.php’ is closed to new replies.