Statistics: Posted by Cristián Lávaque — August 11th, 2011, 1:21 am
$user->set_role( 's2member_level'. $demote_to );
Statistics: Posted by randomskate1 — August 11th, 2011, 1:17 am
$user = new WP_User(21);
$user->set_role('s2member_level2');
Statistics: Posted by Cristián Lávaque — August 10th, 2011, 10:15 pm
Statistics: Posted by randomskate1 — August 10th, 2011, 9:44 pm
get_current_user_id()
wp_get_current_user()
Statistics: Posted by Bruce C — August 10th, 2011, 9:03 pm
Statistics: Posted by randomskate1 — August 10th, 2011, 8:19 pm
$current_user = wp_get_current_user();
$user = new WP_User($current_user->ID);
$user->set_role('s2Member Level 81');
$user = new WP_User(bp_current_user_id());
$user->set_role('s2Member Level 81');
Statistics: Posted by randomskate1 — August 10th, 2011, 7:59 pm
Statistics: Posted by Cristián Lávaque — August 10th, 2011, 7:34 pm
Statistics: Posted by Cristián Lávaque — August 10th, 2011, 7:26 pm
$user = new WP_User(bp_current_user_id());
$user->set_role(81);
$user = new WP_User(bp_current_user_id());
$user->set_role('level_81');
$user = new WP_User(bp_current_user_id());
$user->set_role('s2Member Level 81');
$user = new WP_User(bp_current_user_id());
$user->set_role('s2MemberLevel81');
Statistics: Posted by randomskate1 — August 10th, 2011, 7:21 pm
$user = new WP_User($user_id);
$user->set_role('subscriber');
Statistics: Posted by Cristián Lávaque — August 10th, 2011, 12:11 pm
$demote_to = S2MEMBER_CURRENT_USER_ACCESS_LEVEL – $demotion_value;
$demotion_role = c_ws_plugin__s2member_option_forces::force_demotion_role ($demote_to);
$demotion_role = c_ws_plugin__s2member_option_forces::force_demotion_role ( ‘s2Member Level ‘ . $demote_to);
Statistics: Posted by randomskate1 — August 10th, 2011, 8:11 am