add_submenu_page()
and similar functions accept a capability
. Capabilities are slightly confusing in WordPress as every role name is a cap as well. So instead of just adding a role name, you could just take a capability that is shared between the roles of the Subscribers and the Editors.
As you can see from the capabilities and roles table in Codex, read
for example is a capability that every role in WP has.
Related Posts:
- Change top level menu item to point to custom submenu item
- Add a Separator to the Admin Menu?
- Adding a custom admin page
- How to remove entire admin menu?
- Plugin to remove Admin menu items based on user role?
- Add my own button next to “Screen options” and “Help” in the admin
- How to show custom menu items in the WordPress android app?
- Remove ability to access certain admin menus
- Appearance->Editor not visible
- Custom WP_List_Table displays blank rows
- How do I set up a webhook?
- Admin pages have no content
- WordPress Left Hand Side Admin Menu Always Collapsed
- Reorder plugin items in the admin menu
- Re-ordering Admin Submenu Sections
- Reference external file as a function
- Add number new posts (post_status = pending) to administration menu [duplicate]
- How To Create User Specific Admin User Pages?
- Change the Default Pages Menu View in wp-admin
- How to change admin menu position of “Media”?
- Hiding Admin Page While Keeping Menu Expanded
- Associating custom submenu item with post type of top level menu item
- Admin doesn’t have sufficient permissions to plugin’s page
- Remove Admin sidebar link
- Single category’s posts list in admin menu
- Dashboard menu missing
- WordPress Remove Submenus
- page not updating with database
- Why am I timing out when using the Menu Editor?
- 500 internal server error on wp-admin only
- How can I POST or GET to the same admin page from which I am POST-ing or GET-ing
- Output the admin menu_position for each item
- avoiding the display of certain categories to certain user roles at content entry time
- How can I add a menu item to the admin area?
- Backend Checkboxes working – but not visual?
- WordPress Admin Menu Order for ‘admin.php’ pages
- Include script files for admin submenu page
- Give admin_menu permission to specific users
- Show all admin menus in a table
- Highlight active Admin Menu when added though add_menu_page
- require/include php file in add_menu()
- Create WordPress Menu Item Without Linking to a Custom Page
- Simple CSS admin pagination
- How to change the default url for ‘Posts’ link?
- Unsure how to add simple checkboxes that write to a small table to admin
- Add a link to the Admin menu
- Reference external file as a function
- Display admin sidebar into custom post pages if logged
- The website cannot display the page
- Set Default Admin Colour For All Users
- How can I target WordPress 3.8 new interface MP6 with CSS?
- initial sort order for a sortable custom column in admin
- Uploading files in admin panel?
- Remove Customize Background and Header from Appearance admin menu without CSS or JS
- Redirect Admin User in Dashboard
- Conditional check for front-end which includes ajax
- Hide update messages from non-admin users?
- Get email address of type Administrator
- Custom Post Type and taxonomies’s labels localization not working
- Which hook for processing plugin page form data?
- Calling a shortcode in the backend
- Conditionally load CSS/JS/PHP in wp-admin if using a mobile device
- Assuming a theme is properly secured, how save is the WordPress admin?
- Is there a way to hook into the update-core page for custom messages?
- WordPress as a web app – always auto-save post and meta data
- Determining whether it’s a AJAX call from front-end or from back-end
- Disable the “Skip to Toolbar” tabbing accessibility feature
- Super slow admin panel
- My WordPress Admin looks messed up when I edit posts or pages
- POMO_Reader->substr() call endless loop?
- jQuery UI AutoComplete & wp_enqueue_script
- Plugin admin panel JavaScript Broken
- Force Contributors to add Tags via edit-tags.php
- How to enqueue admin content outside admincp
- admin_enqueue_scripts the same css file as wp_enqueue_style
- Is there alternative to WP_List_Table?
- Filter WooCommerce Orders
- Creating custom admin panel pages without making a plugin?
- Page can’t hand request – HTTP ERROR 500 – when updating something
- How to change the User name and Password of admin account
- Posts in sidebar only by admin
- Display an image of selected template in admin to aid user when using complex templates
- How to remove the default checked attribute from inputs in admin?
- Admin user column sort by numeric meta key
- Shop in Subdomain feeding main domain order in admin area
- Can I retrieve Published changes when changes have been Saved but not Published in WordPress Semplice?
- I can’t access login page
- Admin Access for specific page(s)
- Get Link of Page Selected through a Select Field in Custom Admin Page
- how to disable the e-mail verification on wp-admin/options-general.php multisite admin e-mail
- conditionally update css on edit.php
- Can I show the tag admin interface on a post when logged in as an admin?
- Editing post in admin panel
- Making a custom upload form and page in the admin section
- WordPress gallery image link gives 404 when not logged in
- Remove “minor-publishing” div from Publish admin metabox
- New User Notification – Setting Email
- You do not have permission to access this document on form submit
- Woo Commerce Settings for Check-out Form [closed]
- Modify ‘the_content’ appearance in the admin area