Try before you buy

Pages by User Role – Try before you buy

This plugin lets you restrict access to a Page, Post or Custom Post Type depending on which Role the user has. It removes the Page, Post or Custom Post Type from search results and blog roll. You can hide Page from the menu when the user is not logged in.

You can also set a specific redirect URL for users that don’t have the required User Role.

If you want to try how this works then simply login as one of the following User Roles below:

[sws_button class=”” size=”sws_btn_xlarge” align=”sws_btn_align_center” href=”/wp-login.php?redirect_to=/pages-by-user-role/try-before-you-buy/” target=”_self” label=”Try before you buy!” template=”sws_btn_silver” textcolor=”” bgcolor=”” bgcolorhover=”” glow=”sws_btn_glow_blue”] [/sws_button]

 

In the menu I’ve created pages for the following user Roles: Subscriber, Contributor, Author and Editor. You can only see these pages once you login. However in order to see how the plugin works you can also try and access one of the pages without being logged in.

Subscriber

User Name: Subscriber
Password: TryMeNow
URL: plugins.righthere.com/pages-by-user-role/subscriber

Contributor

Username: Contributor
Password: TryMeNow
URL: plugins.righthere.com/pages-by-user-role/contributor

Author

Username: Author
Password: TryMeNow
URL: plugins.righthere.com/pages-by-user-role/author

Editor

Username: Editor
Password: TryMeNow
URLplugins.righthere.com/pages-by-user-role/editor