Page 1 of 1

(Pro) Downgrade to Level 0

PostPosted: August 14th, 2010, 7:26 pm
by johnleblanc
The "Pro Form Generator For Billing Modifications" does not provide a "Downgrade to Level #0" option.
What is the recommended way to accomplish this?

s2Member Pro version 1.1.1
WordPress 3.0.1

Re: (Pro) Downgrade to Level 0

PostPosted: August 17th, 2010, 9:30 pm
by Jason Caldwell
Hi there. Thanks for the great question.

Well, a downgrade to Level #0 would essentially be the same as a cancellation. So you could use the Cancellation Form Generator for this. Downgrading a Member back down to Level #0, makes them a Free Subscriber again. So there is no transaction associated with this; only a demotion.

If you wanted to do something more custom, you could code something like this into your theme.

Code: Select all
function demote_to_level_0()
    {
        $user = wp_get_current_user();
        $user->set_role("subscriber");
    }