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™

(Pro) Downgrade to Level 0

s2Member Plugin. A Membership plugin for WordPress®.

(Pro) Downgrade to Level 0

Postby johnleblanc » August 14th, 2010, 7:26 pm

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
User avatar
johnleblanc
Experienced User
Experienced User
 
Posts: 31
Joined: August 14, 2010

Re: (Pro) Downgrade to Level 0

Postby Jason Caldwell » August 17th, 2010, 9:30 pm

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");
    }
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot] and 0 guests

cron