remove user role display
-
Hi @xevo
I put the following code in my functions.php file that you posted a while back, but even after removing the code from my files, the role is still showing. Could you please help me remove it? You made the post in this topic https://buddypress.org/support/topic/how-do-you-display-user-roles-in-buddypress-public-profiles/
function pc_get_userrole ($user_id) { $user = new WP_User($user_id); $userclean = $user->roles[0]; return $userclean; } Call it like this. echo pc_get_userrole(bp_current_user_id());
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘remove user role display’ is closed to new replies.