subscriber
is a role, not a capability. Use a capability to manage access, e.g. read
.
To understand the difference better install Justin Tadlock’s plugin Members.
For the subscriber role you get a list of capabilities like this:
The administrator role in contrast:
Related Posts:
- what’s the meaning of the field wp_capabilities in table wp_usermeta
- Add Custom User Capabilities Before or After the Custom User Role has Been Added?
- How to Structure a New Role/Capability Scheme?
- How to allow Unfiltered HTML in a wordpress multisite install
- Limit role to one plugin [duplicate]
- Logout users upon login, based on caps/role?
- How to determine which capability to use?
- Allow contributor user role to perform copy operation PHP
- How to give custom roles the capability to edit one Menu instead of every Menu
- Buddy Press restrict the capability to edit users
- What is more secure checking capabilities of user or checking role of user in WordPress plugin development
- add_menu_page() with different name for first submenu item
- How do I create a custom role capability?
- How to add sub-menu to a menu generated by wp_nav_menu by using plugin
- Change the_title() of a page dynamically
- Send user activation email when programmatically creating user
- How do I programatically insert a new menu item?
- Change default admin page for specific role(s)
- Add Dividers or Separators Between Nav Menu Items
- How to Change the Entire WordPress Admin panel Look and Feel?
- Nav Menu meta failing to import
- WordPress Capabilities: edit_user vs edit_users
- Overwriting Core WordPress Functions with Plugins
- Allowing Custom Capability to Manage Plugin Options
- Determine which theme location a wp_get_nav_menu_items is for
- Can I add pages to my custom menu via script?
- Replacing WordPress menu functionality with a plugin
- How to add more than 1 user role to sub-menu pages
- Odd behaviour with submenu link creation
- Hook event for upload image in the menu
- Why isn’t the Settings API designed to work for plugins using custom admin menus? [duplicate]
- How do I approach removing menu items on the fly based on settings in my plugin?
- Delete a specific item menu when I deactivate my plugin
- How to restrict plugin’s sub-menu pages to admin/subscribers?
- How to not let a user with a new role edit users that have administrator role?
- Execute plugin for specific user role(s) only
- Create a Page via plugin
- Add Submenu Link in add_submenu_page That Opens in a New Window
- How to assign a WP 3.0 custom nav menu to a theme’s navigation menu location via script?
- PHP 7 – Class Method Compatibility Issue
- How to add pages to custom menus on the fly [duplicate]
- How do I add a custom sublevel menu specified in one directory to a custom top level menu specified in another directory?
- query users by role
- Add notification bubble notice in navigation using transients
- Hide plugin dashboard menu item for specific roles
- How to make a customize role and view a specific plugins base on that role?
- Get Current Menu Location inside Nav_Walker
- get_posts() not working when accessing with a custom user role
- Adding custom fields to WordPress nav menus
- Sub Menu content is being duplicated
- Plugin menu addition in multisite
- Allow users with Editor role to edit menus (without a plugin)
- Prevent third party plugin’s admin page access based on user type
- Remove unwanted elements for a wp_nav_menu
- Is this best practice for Dynamically adding items to WordPress menus?
- How to remove or add submenu item on plugin activate or deactive
- Make nav-menus.php available for editor
- Custom code for WordPress dynamic menu
- Create a custom capability to allow an ‘Editor’ to edit only ‘Subscriber’ users
- wordpress add_submenu_page adds broken link
- Hide custom post type by user roles
- WordPress custom post type capabilities issue
- WP Enqueue style on all plug-in pages
- Add child pages to submenu automatically
- Customize existing menu item
- Check user’s role and store in variable
- WordPress: Custom User Role cannot access Custom Post Type | “Sorry, you are not allowed to access this page”
- Issue with plugin sub menu and pages
- How to use gettext for specific user role
- How to add Plugin functionality in WordPress Frontend Menus
- Unable to access custom plugin backend
- How to hide page links from theme menu
- WP_NAV_MENU filter targets all menus
- How do I add a menu item to a Pods admin menu?
- How To Create A File Archive in WordPress?
- How can I change my assigned user role in WordPress 3.5.1?
- insufficient permissions; coding an action for plugin governed by custom capability
- How to create archive page to add in menu
- How to show only the last two categories in a menu?
- Enable a role named ‘backend_user’ to access my plugin pages
- Add custom parameter for custom user role
- Always hide a page from the menu
- remove different admin menu for specific users
- How I can give access to my custom plugin for editor roles user?
- Remove all capabilities in separate method fails versus included in method
- How to get an array out of a nav menu if it’s a plugin?
- Remove from a div by class name from post page if post author role is not administrator
- Adding admin for specific users
- New Users are saved with no role selected
- WordPress User Management Departmental Managers
- What happens when you create/edit a menu
- Plugin capabilities
- Adding parent custom post type menu option
- Create and style menu
- Change the class of wordpress menu
- Invalid Menu Items
- Declaration of mandoe_menu_walker::start_el(&$output, $item, $depth, $args) must be compatible with Walker::start_el(…)
- Remove default wordpress roles
- Displaying an Uploaded Image as a Custom Avatar in WordPress
- Adding a navigation with wp_nav_menu() to a custom block in the site editor