A Cozmoslabs Product
Documentation / Developer Knowledge Base / Remove subscription details from pms-subscriptions when user is already a member

Remove subscription details from pms-subscriptions when user is already a member

If the user already has a Subscription Plan attached to this account and goes to a page with the [pms-subscriptions] shortcode, he will see the Subscription Details that [pms-account] shows when a user is already a member.

You might want to use both shortcodes on the same page. By adding this line of code to your website, the [pms-subscriptions] shortcode will return nothing when the user is already a member:

1
add_filter('pms_subscriptions_form_already_a_member', '__return_empty_string');

The Ultimate Membership Bundle

Combine the power of Profile Builder with Paid Member Subscriptions to set up user registration, memberships, and recurring revenue.

Get 25% off with the bundle

Help & Support

We’re here to help you every step of the way.

Open a Support Ticket