How can I hide a subscription plan?

I have implemented 3 different subscription plans. The first is a paid trial that lasts 10 days, the two others are types of monthly plans (again paid). All three are available to select when the user sign ups.

However currently anyone on the two non-trial plans can move to the trial at any time. This seems counterintuitive. Instead I want the trial to only be available at sign up and not be in the list of subscriptions a user can move to once they have signed up.

How can I implement such logic in Membership?

Thanks! :slight_smile:

  • PC
    • WPMU DEV Initiate

    Hey there Alex,

    Thanks for posting on the forums.

    Currently you can only make a particular subscription private i.e. you can hide it from being displayed on the frontend.

    However if you are creating a paid trial as a separate subscription, there is no way to avoid someone from moving on that subscription and I think that is what you want ?

    What about using shortcodes ?

    You can use the below shortcodes for placing the subscribe buttons on your site.

    Below shortcodes can be used to show membership subscriptions.

    [subscriptiontitle subscription="2"]
    [subscriptiondetails subscription="2"]
    [subscriptionprice subscription="2"]
    [subscriptionbutton subscription="2"]

    So you can show the paid trial to only visitors and if a user is on a paid subscription, you can hide the Paid trial subscription from them.

    You will learn more about it here :

    So you can do something like this.


    Can see all 3 subscriptions so include the subscription shortcodes for all 3



    Can only see the other paid plan so include that shortcode


    Makes sense ?

    Cheers, PC

  • Alex
    • WPMU DEV Initiate

    Hey PC,

    Functionality-wise this works. If they’re a visitor or have an account but no subscription they see all 3 subscriptions but if they are signed up to one of the subscriptions they can never see the trial in the subscriptions page. Great!

    However, it could be a bit better.

    1) Currently the Protected Content Message is showing for the subscription plan they can’t see. I don’t wish for this to display – just not show whatever content is inside of it.

    2) If you build the subscriptions page with shortcodes the user doesn’t see the helpful text at the top of the page letting them know what subscription they are currently subscribed to.

    3) If you build the subscriptions page with shortcodes none of the classes from the original subscription form (from the signup page) are included.

    Ideally there should be a [subscriptionbox] shortcode that will build exactly the same pricebox as the subscription page. And possibly a shortcode that would hide content without displaying the Protected Content Message.

    Or at least a simple option in the backend to only enable a subscription at sign up.

    Is there a list of PHP conditionals somewhere?

  • Alex
    • WPMU DEV Initiate

    Not to mention building the page with shortcodes wont display the Unsubscribe button. Complete lost of functionality.

    Adding an option to display a subscription only at sign up seems like the best answer here. Maybe this could be considered for a future version? In the mean time I think my client will have to tweak their pricing structure. Not ideal.

  • PC
    • WPMU DEV Initiate

    Hey there Alex,

    Sorry for the delay in response as I was away due to bad health and could not get back to this any sooner. Please accept my apologies for the uninformed delay and any inconvenience it may have caused.

    Let me discuss it with my colleague @jack Kitterhing and get back to you with him so that we can find the optimal solution other than from what I suggested.

    Cheers, PC

  • Alex
    • WPMU DEV Initiate

    Hey PC,

    Don’t worry about the delay, the client was happy to adjust their subscription offering to suit Membership’s functionality/logic so it’s as good a sorted.

    However for the future it would make sense to add a feature to display a subscription only at sign up.

    Thanks for getting back to me. I’ll mark resolved.


  • PC
    • WPMU DEV Initiate

    Hey there Alex,

    Thanks for getting back to me :slight_smile:

    Glad to hear that they are good with the current setup !

    I have however moved this to “Features and Feedback” so that we can better track it and get votes from other members of the community as well :slight_smile:

    Cheers, PC

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.