How to demote members with PHP
-
I am trying this and I cannot get it to work:
$demote_to = S2MEMBER_CURRENT_USER_ACCESS_LEVEL – $demotion_value; (works fine)
but THEN…this:$demotion_role = c_ws_plugin__s2member_option_forces::force_demotion_role ($demote_to);
and this:
$demotion_role = c_ws_plugin__s2member_option_forces::force_demotion_role ( ‘s2Member Level ‘ . $demote_to);doesn’t work. I cannot find any documentation anywhere about this function either, It will refuse to demote the member, any help will be appreciated a lot. Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to demote members with PHP’ is closed to new replies.