Documentation

Front-end Membership Modules

Home / Restricting Content only for users

Restricting Content only for users

With this plugin, you can restrict any pages, categories, tags, custom taxonomies only to users who are logged in to the site. You can restrict your website content underĀ CSSJockey >> Membership Modules >> Configuration >> Restricted Content.

restrict-content

 

Visitors trying to access the restricted content will see a message that you can customize via WYSIWYG editor. You can use following variables to include login and register link.

  • %%login_link%%: This will be replaced by login link which will link to the login page specified under Configuration >> Page Setup screen.
  • %%register_link%%: This will be replaced by register link which will link to the login page specified under Configuration >> Page Setup screen.

Restricted Content within any Page or Post

This plugin comes with two shortcodes to display content based on the user login status.

restricted-content-shortcodes

User Only Content

Any content within this shortcode will be displayed only to logged in users.

Visitor Only Content

Any content within this shortcode will be displayed only to users who are not logged in to your website.