Hi - I've recently installed the plugin (and pro plugin, too) and I'd like to display the member's membership grade on their profile - is this possible? And how might I achieve this...
Thanks in advance for any help on this,
N
PriMoThemes — now s2Member® (official notice)
This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™
<?php echo S2MEMBER_CURRENT_USER_ACCESS_LEVEL; ?>
$user = new WP_User( bp_get_displayed_user_username() );
$level = ws_plugin__s2member_user_access_level($user);
$label = constant("S2MEMBER_LEVEL".$level."_LABEL");
echo $label;
Users browsing this forum: Exabot [Bot], Google [Bot] and 0 guests