Provide Specific Content Restriction

Content Restriction

ARMember provides a facility to display the content partially using Restrict Content Shortcode. Restrict Content Shortcode can be configured from ARMember -> Add/Edit, Page, Post.

For, WordPress Gutenberg Editor you can add ARMember restrict partial content shortcode as shown below:

ARMember restrict partial content gutenberg

For, WordPress Classic Editor you can add ARMember restrict partial content shortcode as shown below:

ARMember restrict partial content classic editor

You can display the content partially by configuring two options for Content Restriction:

Restriction Type

You can set the restriction type between Hide/Show depending on your requirement to display or hide the specific content for the targeted user.

Target Users

You can apply the restrictions on the content by targeting the user between Logged-in users, Non-logged users, or by the Plans assigned to the members.

If no option is selected then restriction type will be apply for “Everyone”.

WARNING: Partial Content Locker will not work when current logged in user is Administrator. As Administrators do have full access to all content.

ARMember_content_restriction2

Enclose your content in the shortcode to display it conditionally. For ex: If you want to display Content 1 only to the logged in user and Content 2 should be only displayed if the user is not logged in, then the content should be set in the shortcode as per below example:

[arm_restrict_content plan="registered," type="show"]

   Content 1 – Show Only If User Is Logged In

[armelse]

   Content 2 – Show Only If User Is Not Logged IN

[/arm_restrict_content]

Content 3 – Show To All Users (whether Logged In Or Non-Logged IN)

Remove [armelse] part from shortcode if you don’t want to show your content conditionally.

Suppose, you want to show your content1 if user is logged in and show content2 anyway, then shortcode should be as follow:

[arm_restrict_content plan="registered," type="show"]

   Content 1 – Show Only If User Is Logged In

[/arm_restrict_content]

   Content 2 – Show To All Users (whether Logged In Or Non-Logged IN)

In such way you can show/hide specific page content based on membership plan of user too. Suppose you want to hide content1 if user have membership plan of ID 1 or 3, then use shortcode as below :

[arm_restrict_content plan="1,3," type="hide"]

   Content 1 – Hide Only To Users Having Assigned Plan With Plan ID 1 or 3

[armelse]

   Content 2 – Show If User Don’t Have Assigned Plan With Plan ID 1 or 3

[/arm_restrict_content]

In this way, you can partially restrict your content of page/post.