Pages by User Role for WordPress
Are you a WordPress developer or a Web Designer who makes use of WordPress to develop web sites for your shoppers? Or are you a novice WordPress person?
Have you ever wished to not present Pages, Posts, or Categories within the menu? Or wished to limit entry to sure content material in your web site? With Pages by User Role, you may add Access Control to the next issues in WordPress based mostly on which Role the person has.
- Pages
- Posts
- Categories
- Custom Post Types added by third-party plugins
- Custom Taxonomies (added by third-party plugins
- WooCommerce (Products and Shop)
We have made this very straightforward with Pages by User Roles for WordPress.
The plugin additionally removes the Page, Post, Custom Post Type, Categories or Custom Taxonomies from search outcomes and weblog roll. You can conceal Page and Categories from the menu when customers are usually not logged in. You may set a selected redirect URL for customers that don’t have the required User Role.
It additionally works in case you are utilizing the customized menu characteristic constructed into WordPress. It will conceal the menu gadgets that has assigned a person Role when the person shouldn’t be logged in.
List of options
You will discover the Pages by User Role Options Panel within the WordPress Settings menu
Options
- Set default redirect URL for customers that doesn’t have entry to a Page, Post or Custom Post Type.
- Enable remark filtering
- Redirect to login
- Support for WordPress User Roles
- Support for Custom User Roles
- Panic possibility in case you limit your self from viewing a Custom Post Type
- Enable Access Control to Custom Post Types
- Restrict entry to Custom Post Types within the Frontend by User Role
- Restrict entry to Access Control Metabox by User Role on Pages, Posts and Custom Post Types.
- Restrict entry to WooCommerce (Products)
- Revert the Pages by User Role habits to the backend as an alternative of the unique frontend.
Pages, Posts and Custom Post Types
- Quick overview of User Role Access on Page, Post and Custom Post Types
- Set Access Control for Subscriber, Contributor, Author, Editor and Administrator
- Set Access Control for customized User Roles (you want White Label Branding to create the Custom User Roles)
- Set Access Control for Categories
- Set particular person redirect URL for every Pages, Posts and Custom Post varieties when a User Role doesn’t have entry.
- Hide particular person Pages kind the menu
- Hide Categories from the menu
- Hide particular person Pages, Posts, Custom Posts Types and Categories from search outcomes and weblog roll
- Restrict entry to content material by utilizing Shortcodes. Access managed by User Role pur_restricted
pur_restricted_alt
pur_not_logged_in
Changelog
Version 1.7.2.101119 – April 16, 2024
- New Feature: Add at all times Allow Usernames and at all times Disallow Usernames entry management. Access by username has greater precedence than entry by person position.
Version 1.7.1.10456 – July 4, 2022
- New Feature: Added assist for permitting particular usernames to login. Is helpful if it’s good to carry out upkeep in your web site and solely need particular customers to entry your web site (wp-admin).
Version 1.7.0.10317 – May 6, 2022
- New Feature: Added an possibility to cover a submit (customized submit sort) from the frontend, however proceed to point out in wp-admin, Ajax, and REST API. Use case: Hiding a course from the entrance finish of the web site, however nonetheless displaying the course contained in the BuddyBoss App.
- New Feature: Added Integrations tab to Settings. Allows the Administrator to toggle ON/OFF the hide-in frontend setting within the Access Control meta field.
- New Feature: Added standing message in submit record (Access Control column)
Version: 1.6.5.100179 – October 29, 2021
- Bug Fixed: When a task is blocked from the entrance web page, WooCommerce checkout Ajax crashes.
Version 1.6.4.99097 – May 6, 2021
- New Feature: Restrict a complete Post Type by User Role. This will ignore the choice to permit non-logged-in customers entry to restricted content material. If the person position has entry to the submit sort, different restrictions should still apply. Like when particular person settings are set for a person Post Type.
Version 1.6.3.99091 – May 4, 2021
- New Feature: Access to wp-admin by User Role.
Version 1.6.2.98892 – March 23, 2021
- Update: Use correctly escaping in PHP
- New Feature: Set homepage by User Role
Version 1.6.0.98592 – February 26, 2021
- New Feature: Added new React based mostly Options Panel to the plugin.
- Update: Converted all outdated options from Options Panel to new React based mostly Options Panel
- Update: Used “strict mode” for all Javascript.
- Update: Removed empty folders
- New: Added new up to date .pot file for translation (English)
- New: Added assist for customized redirect Url when utilizing Forced Login.
- New: Added assist for utilizing wildcard /* in Forced Login white record.
Version 1.5.1.98183 – November 27, 2020
- Bug Fixed: Forced Login was inflicting the person to enter password twice.
Version 1.5.0.97742 – August 20, 2020
- <storng>New Feature: Forced Login. Make your web site utterly non-public
- New Feature: White-list Pages, Posts, and Custom Post Types (Always Visible) despite the fact that you’ve enabled the Forced Login characteristic
- New Feature: White-list URLs. This is helpful if you wish to white-list e.g. archives and classes when the Forced Login characteristic is enabled.
- New Feature: Added assist for settings a selected front-page for customers not logged in and a front-page for customers logged in. This characteristic can be utilized with or independently of the Forced Login characteristic.
- Bug Fixed: Block entry to a Taxonomy time period archive web page
Version 1.4.6.96327 – February 6, 2020
- Update: Added assist for proscribing entry to Pages added to WooCommerce > My Account when utilizing the WooCommerce Account Pages plugin (https://iconicwp.com/products/woocommerce-account-pages/)
Version 1.4.5.86663 – December 14, 2018
- Update: Styling enhancements in Options Panel
Version 1.4.4.83225 – April 20, 2018
- Bug Fixed: PHP warning within the frontend
- Bug Fixed: PHP warning on IIS server
Version 1.4.3.82846 – February 7, 2018
- Compatibility Fix: Pages by User Role brought about the content material of weblog posts on some web sites to be hidden when utilizing WordPress Notification plugin and Pages by User Role.
Version 1.4.2.82096 – November 11, 2017
Version 1.4.1.82080 – November 10, 2017
- New Feature: Added characteristic for dealing with customers that aren’t logged in (General Settings)
Version 1.4.0.81397 – September 13, 2017
- Update: Added language folder and US English .po file
Version 1.3.9.80977 – August 3, 2017
- Bug Fixed: The Post Type Archive possibility shouldn’t be blocking entry to submit sort archive pages within the frontend
- Bug Fixed: Ajax including phrases (missed management for column’s content material)
- Bug Fixed: Term restrictions wasn’t working correctly
- Bug Fixed: Issue with textual content when content material restricted
- Compatibility Fix: In some websites, a better person roles bought unchecked within the Access Control Box if decrease person position edits the Post, Page or Custom Post Type
- Bug Fixed: Default Redirect URL not working
- New Feature: Added assist for Allowing or Blocking entry to Posts assigned to particular Terms based mostly on User Role
- Bug Fixed: Restrict content material shortcodes damaged after current replace
- Bug Fixed: Restricting entry to WooCommerce Shop web page didn’t work correctly
- Update: Added hyperlink to Help Center in Help tab
- Bug Fixed: Restrictions for customers not logged in
- Bug Fixed: Access Control column overwrites Taxonomy Images column
- Bug Fixed: Access Control not working correctly for Topic in BBPress
- New Feature: Added assist for Custom Taxonomies
- New Feature: Added assist for BuddyPress
- New Feature: Added assist for BBPress
- Update: Changed order of Option Panel tabs
- Bug Fixed: post_type_enabled fastened getting post_type identify
- Compatibility Fix: Added examine for WooCommerce Shop, Cart, My Account and Checkout) to keep away from PHP warning.
- Compatibility Fix: Change lessons the place the constructor has the identical identify as the category to __construct (PHP 7 compatibility).
- New Feature: Allow proscribing entry to WooCommerce pages Shop, Cart, My Account and Checkout (restrictions for WooCommerce Custom Post Type archive web page)
- Compatibility Fix: An undetermined third occasion plugin is inflicting a PHP warning
- New Feature: Added possibility to incorporate filtering within the Ajax (Usage: Javascript loaded posts that use wp-admin/admin-ajax.php within the entrance finish).
- Improvement: Replaced add_query_arg() resulting from an XSS vulnerability concern that impacts many WordPress plugins and themes. Please observe that earlier than the operate could possibly be accessed the person needed to be an Administrator, that means that the potential concern was not accessible to the general public.
- Bug Fixed: When blocked submit id?s make the question consequence empty, the blocked posts are usually not blocked in any respect.
- Compatibility Fix: BBpress matter not proven, replies present when put is lively
- New Feature: Advanced choice to out a customized HTML/Javascript when a web page is restricted to the person
- New Feature: Restrict Post Type Archive by User Role, which lets you limit entry to Post Type Archives by User Role and set an impartial redirect URL for it
- Bug Fixed: Disappearing Options Tab
- Bug Fixed: When utilizing inverted PUR the edit submit hyperlink within the toolbar was nonetheless seen, and the person can truly bypass the restriction and edit the submit.
- Bug Fixed: Undesired redirect on Calendarize it! Events
- Compatibility Update: WooCommerce product pages
- Bug Fixed: Handle a state of affairs the place underneath some buggy situations, output have been already despatched by the positioning, earlier than it ought to, and thus breaking redirection.
- Bug Fixed: Removed php warnings
- New Feature: Added a setting to limit what person roles will have the ability to view the ?Access Control? Metabox.
- New Feature: Experimental Inverted PUR performance
- New Feature: pur_not_logged_in shortcode for displaying content material solely
- to guests NOT logged in.
- New Feature: Enable Administrator to permit or block entry to
- person roles (beforehand was solely permit)
- New Feature: Show in menu when restricted submit sort
- New Feature: In the record of posts, within the Access Control column
- present if PUR is Allowing or Denying entry to listed roles
- New Feature: Show Allow as Green and Deny as Red.
- Bug Fixed: Avoid a crash with Options Panel model 2
- Update: Enabled WordPress 3.3 performance
- Bug Fixed: pur_restricted Shortcode was not rendering Shortcodes within the content material
- New Feature: pur_restricted Shortcode now permit different textual content with HTML.
- New Feature: No Access habits customization. Admin can specify if a restricted
- web page ought to redirect to login or to redirect URL.
- Bug Fixed: Adjust the redirect URL area within the metabox
- Bug Fixed: Added lacking registration service library
- New Feature: Built-in Shortcode pur_restricted to limit entry to sure sections
- of the content material by functionality; defaults to view_restricted-content however any functionality
- Update: Options Panel up to date
- New Feature: No entry habits customization. Admin can specify if a restricted web page ought to
- redirect to login or to redirect URL.
- New Feature: Custom Post Types by User Role. This solely reveals if there are customized submit varieties.
This is a mini-plugin itself that provides the next performance:- In the tab possibility it reveals an inventory of customized submit varieties and checkboxes of all the prevailing
- person roles for every customized submit sort. By checking a person position for a customized submit sort you’re
- proscribing admin entry to that submit sort solely to the checked person position.
VERY IMPORTANT: Always examine the Administrator. Note we don’t do it by default, thus possibly the Administrator modified the administrator person position, so we don’t actually know what the administrator position is.
In the case of incorrectly setting the administrator person position, there may be an possibility on the identical
tab to disable this characteristic and get better entry to the customized submit varieties. - Bug Fixed: After setting person roles in Category and eradicating all, all roles the place denied entry afterwards.
- New characteristic: added remark filtering to feedback fetch with the wp technique get_comments (current feedback widget)
- Update: Changed the process for redirect; 1) the customized url 2) the default url 3) the login web page 4) in case you are logged in and do not need entry, an error message is proven.
- Bug Fixed: Fixed damaged default redirect URL
- Bug Fixed: Fixed Pages and Post redirect URL
- New Feature: Added assist for non commonplace WordPress desk pre-fix
- New Feature: Added assist for entry management to Categories
- New Feature: Categories with entry management are usually not searchable (except you’ve entry)
- New Feature: Restrict entry to Post by utilizing the Posts ID.
- New Feature: Category won’t present within the menu if restricted entry
- First launch