Restrict access to Content

Restrict access to Content by User Role

If you use this shortcode the content will only be visible to the Editor. You can replace the editor with any other user role

[pur_not_logged_in] You can see this content if you are not logged in. [/pur_not_logged_in] Your content that is only visible to the editor [/pur_restricted]

You can also add the capability view_restricted_content to any user role and then the user with the specific user role can view restricted content. It works with the following shortcode

[pur_restricted] Add your restricted content [/pur_restricted]

And you can use this for showing content on the page for users that are NOT logged in.

[pur_not_logged_in] Add your content visible to users not logged in [/pur_not_logged_in]

And you can restrict content to a specific user role by using the following shortcode. The user role can be replaced with any user role in your site.

[pur_restricted_alt capability='contributor'] Add your content only visible to the Contributor [/pur_restricted]

If you have the right access level to this post you can see a picture of the plugin that is used to restrict access to content. This is a really helpful plugin that makes it possible for you to show different content depending on the user role your visitors have.
If you login as an Editor you can see even more content on this page.

Try login using the following information:

Username: Editor
Password: TryMeNow

Content shown to users that are not logged in:
You can see this content if you are not logged in. 

Content shown if you are not editor:
If you are not an editor you can see this text.

Content shown if you are not administrator:
If you are not an administrator you can see this text.

Recent Posts

Calendarize it! version 4.3.6 released

Calendarize it! for WordPress - The most flexible and feature-rich calendar solution available for WordPress

We have just released Calendarize it! version If you have entered your license key in the Options > License tab you can easily update the plugin from inside wp-admin.

If you prefer to download the plugin and install it manually it will be available on Codecanyon within 24-48 hours.

In this update we  have fixed a number of important bugs which affects some of our popular add-ons like External Event Sources, Event Grid View and Taxonomy Filter. Remember to visit the downloads section to see if there are any pending updates for add-ons.

We’ve also fixed two interface issues on mobile devices. Hopefully this should give mobile users a better experience.

If you have any questions or feedback we would love to hear from you. Thank you for continuing to support our plugins!

Version – November 18, 2016

  • Bug Fixed: Date Picker triggered keyboard in Mobile devices
  • Bug Fixed: Some recurring events from External Event Sources .ics are not showing and generating an error (Invalid UNTIL date format)
  • Bug Fixed: Deselecting item in Taxonomy Filter drop down not working properly on mobile devices
  • Bug Fixed: When using Event Grid View and Taxonomy Filter, the events are not clearing correctly and in certain conditions events that should not be showing will show
  • New Feature: When using FLAT UI Calendar Widget inserted with shortcode rho-image-full allow Event Details images to be full instead of thumbnail size
  1. Pages by User Role for WordPress version 1.3.1 released Leave a reply