- Code: Select all
$demote_to = S2MEMBER_CURRENT_USER_ACCESS_LEVEL – $demotion_value;
but THEN…this:
- Code: Select all
$demotion_role = c_ws_plugin__s2member_option_forces::force_demotion_role ($demote_to);
or this:
- Code: Select all
$demotion_role = c_ws_plugin__s2member_option_forces::force_demotion_role ( ‘s2Member Level ‘ . $demote_to);
doesn’t work. I cannot find much documentation anywhere about this function either, It will refuse to demote the member, any help will be appreciated a lot. Thanks!