Protecting content for different membership levels is an integral part of Paid Member Subscriptions.
There are two ways of protecting your posts, pages and custom post types: directly from each individual post or page or using the [pms-restrict] shortcode.
Considering that PMS creates the user account even if the payment was not successful (we do this so that users can login and retry the payment), you should always restrict your paid content by checking the right Subscription Plans checkboxes and not rely only on the Logged in status of your users.
Using a Message
This option will show the user a custom message instead of the restricted content that he was trying to access.
If you check only Logged in Users in the Display For area the content will be visible to anyone who is logged in. To restrict the content based on a subscription plan as well, you will need to check the boxes corresponding to the Subscription Plan.
In the screenshot above the restriction is applied to show this post only to users which are subscribed to the Gold or Silver plan.
The message that the user will see if he cannot access the content can be found by going to Paid Member Subscriptions -> Settings -> Content Restriction.
If you check the Enable Custom Messages checkbox you will be able to modify these messages and make them specific to the post that you just restricted.
Using a Redirect
This option will allow you to define a page that users should be redirected to if they don’t have access to the content they were trying to access.
Based on the settings shown in the screenshot above, only users which are subscribed to the Gold or Silver plan will be able to see this page, the rest will be redirected.
The Redirect URL can be changed by going to Paid Member Subscriptions -> Settings -> Content Restriction.
You can also add a Custom Redirect URL which is only applied to the post that is currently being edited by checking the Enable Custom Redirect URL checkbox.
Using a Template
By selecting this option if the post is restricted the default template of the post will be changed with the one selected in the “Restriction Template” section dropdown.
This option will take the content restriction settings configured in Paid Member Subscriptions -> Settings -> Content Restriction and apply them to the post. This is also the default selected option.
Restrict Content Shortcode
Paid Member Subscriptions gives you the option to restrict comments. You can restrict the user from viewing and replying to comments or you can let the user view comments but deny him replying.
To activate this functionality, you need to go to the Paid Member Subscriptions -> Settings -> Content Restriction page.
Restrict Content Globally
If you’re using a paid version of Paid Member Subscriptions you have access to the Global Content Restriction add-on. This is the best way to restrict your content as you can target custom post types and taxonomies directly.
You can simply create a category `Premium Content` in which you add the posts you want to be restricted, target this category with our add-on and never worry about applying the restrictions to each post one by one.
You can read more information by going to the documentation page for it.
Restrict WooCommerce Products
Restrict bbPress forums
Paid Member Subscriptions is also capable of restricting bbPress forums. For this functionality to work, you need to have installed the bbPress add-on.
The bbPress add-on is available with a Hobbyist or Pro licence for Paid Member Subscriptions .
More info about this functionality can be read here.