Displaying PMP Membership type under name

Solved8.57K viewsGeneral
0

How could this be done, we have some members that are considered providers in Paid Membership Pro and we want to display that under there names in the Q&A area. I own the PMP plugin

0

I also have the code now, Where does it go

if(is_user_logged_in() && function_exists('pmpro_hasMembershipLevel') && pmpro_hasMembershipLevel())
{
	global $current_user;
	$current_user->membership_level = pmpro_getMembershipLevelForUser($current_user->ID);
	echo 'Membership Level: ' . $current_user->membership_level->name;
}
You are viewing 1 out of 6 answers, click here to view all answers.