Search Over 30,000 FREE Plugins from the Official WordPress Plugin Directory Repository

Restrict Content by Role

Restrict users with certain User Roles from accessing content and sub-content, both publicly and the WordPress Dashboard (wp-admin).

If you have a WordPress website with multiple users and several User Roles defined, and you wish to prevent certain User Roles from accessing certain pieces of content (and sub-content) both publicly and within wp-admin, then this plugin is for you.

The plugin provides the following functionality:

  • A meta box to allow you to set user role permissions for content and its sub-content
  • Choose if a restricted role can also view or edit that content in wp-admin
  • An option to allow content, content and sub-content or just sub content to be restricted
  • An option to allow a custom redirect URL (overriding default redirect URL settings)
  • The ability to override parent content restrictions on sub-content (including the ability to make it public)
  • Works with the CMS Tree Page View plugin
  • An options page, with the following options:
    • Choose post types that the meta box should appear on
    • Option to hide restricted pages from menu (only works when using wp_nav_menu())
    • Choose the roles that will appear in the meta box to be restricted
    • Define a login screen error message (if no custom redirect URL is set)
    • Set a custom redirect URL
    • Prevent users from adding child content to restricted content

If you are using this plugin in your project we would love to hear about it.

Author Make Do
Contributors mkdo, mwtsn
Tags lockdown, lockdown content, lockdown pages, manage content permissions, manage page permissions, manage pages, manage permissions, manage roles, manage sub page permissions, manage user roles, manage users, management, pages, permissions, restrict, Restrict content, roles, user
  1. restrict-content-by-role screenshot 1

    Meta Box to set permissions on hierarchical content

  2. restrict-content-by-role screenshot 2

    Meta Box on sub-content, showing override options

  3. restrict-content-by-role screenshot 3

    Meta Box on sub-content, overriding parent permissions

  4. restrict-content-by-role screenshot 4

    Options page (more options available)

  5. restrict-content-by-role screenshot 5

    Meta box to set admin permissions on hierarchical content

  6. restrict-content-by-role screenshot 6

    After admin permission set, an editor can no longer see the page in the admin panel

  1. Backup your WordPress install
  2. Upload the plugin folder to the /wp-content/plugins/ directory
  3. Activate the plugin through the 'Plugins' menu in WordPress
  4. Configure the plugin via the 'Restrict Content by Role' options page under the WordPress 'Settings' Menu


  • First stable release


  • Reviewed and refactored code


  • Updated for submission to WordPress plugin repository


  • The plugin can now restrict access to content on within wp-admin
  • You can now select which roles are shown in the custom meta box


  • Now works with the CMS Tree Page View plugin


  • Switched the way the meta box checkboxes work, so that they are more intuitive.


  • Fixed bug where new pages would be locked out.


  • New option to prevent users adding child pages to restricted pages.


  • Bug fix - sometimes new pages were automatically locked.


  • Bug fix - better fix for auto-locking pages.


  • Added checkbox to allow redirects back to the originally requested URL


  • Added 'Public Access' role, to restrict pages to logged in users
  • Fixed an issue that prevented Tree Page View from working with the plugin


  • Tested with WordPress 4.5, updated translations


  • Option to hide restricted pages from menu (only works when using wp_nav_menu())


  • Added missing Menu Access file


  • Allow admins to see backend menu items, even if they are restricted on the front end


  • Added ability to reset permissions for each role
  • Fixed menu when not hiding
  • Appended query string to redirect
Version 3.5.0

Requires WordPress version: 4.4 or higher

Compatible up to: 4.5.6

Last Updated 22 Nov 2016

Date Added: 08 Oct 2015

Plugin Homepage


4.3 stars
6 ratings


Not Enough Data

Works: 0
Broken: 0