You can club it with remove_menu_page to first remove the page & then re-adding it
Copy the add_menu_page line from plugin. Paste it in your theme & change the capability. Then immediately before this line add remove_menu_page($menu_page_slug);
Use the same hook but with a higher priority
Related Posts:
- What action should I hook into when adding roles and capabilities?
- What is valid timing of using current_user_can() and related functions?
- Allow Contributor to change the author of his own post?
- What’s the difference between Role and Meta capabilities; When to use map_meta_cap() filter
- How can I grant capabilities directly to users (not roles) in wp-admin?
- Disable posts, only allow to edit existing pages, not create new ones (create_posts)
- How to get all capabilities of an existing user role
- What exactly is WordPress?
- Menu capability in WordPress
- Does the “promote_users” capability allow someone to create a new admin account?
- current_user_can( ‘edit_post’, $post_id ) does not work for contributer but for administrator
- Add user capability and check against it
- Listing all capabilities in dropdown is returning boolean
- Add Media Upload Capabilities Needed for Custom Role for non-Posts
- add_cap only adding the first two in array
- How can I prevent a writer from being able to edit an article that has been scheduled?
- Check whether user can delete a given post
- Multiple Authors on Single Post
- Allow unfiltered HTML in titles for low level users?
- Allow users to set a post author
- Unify the roles and caps?
- current_user_can capabilities in the admin not working as expected
- Remove menu items from admin page and limit capabilities
- Filter list of rules based on a capability
- Using author_can() on custom post types in WordPress
- How to show a admin bar menu item only to users with certain capabilities?
- Restricted user capabilities cannot add image
- User capability per post
- How come I see a manage_categories capability but not a manage_tags capability for any users?
- Theme option editing capability problems
- Allow Contributor to edit published post and filter by page id
- Usage of current_user_can()
- Is it wise not to use only meta capabilities for certain basic post types?
- Remove capability from specific user
- What capabilities are assigned to unauthenticated users?
- Capabilities Not Changing
- Assign multiple roles , overlapping capabilities
- Administrator role capabilities
- How to get all capabilities
- Prevent all users from editing posts except admins using hooks
- WordPress remove capability post ,media completely for custom role
- Add capability to “Editor” role to be able to view all users attachments
- Why cannot author edit pages?
- Add capability to a role , so user is only able to view his own posts
- Plugin page and capabilities
- How can restrict certain users from delete a category but can view only in wordpress?
- Delete admin edit/delete links in users list wordpress admin
- Create a Capability category to group a few custom Capabilities
- Capability to edit post slugs
- admin can not change author profile picture
- Changing capability type without altering plugin
- Can’t create new Pods pages
- Is there a way of retrieving the core WP capabilities?
- Pricing Tables admin page capability
- Best Roles and Capability on a site with review features using a front end custom post
- Not able to give editors acess to new admin menu item
- Manage Roles and Capabilities on Multi-site
- Force logout when role is changed
- add_role() run only once?
- Allow user to “edit_others_posts” to save only, not publish
- Allow user to Publish, but not Edit or Delete
- Email notification for editors only
- How do you add custom taxonomy capabilities exactly?
- Proper use of option_page_capability_{$page_name}
- How to allow Unfiltered HTML in a wordpress multisite install
- Is there a simple way to manage capabilities per user?
- Custom role capabilities to administrator not taking effect (no plugin)
- Allow user to edit specific user with meta key using map_meta_cap
- Hide menu item based on user’s custom capability
- Can you set a role as author?
- How to safely allow user upload on CPTs?
- Allow Author on Site A capability to upload files on Site B in Multi Site
- Limit role to one plugin [duplicate]
- Custom user roles for access to specific parts of the site
- Making a plugin only available on the front-end for the logged in super admin
- Adding user capabilities for a custom taxonomy of a custom post type for a custom user
- Allow users with Editor role to edit menus (without a plugin)
- Remove upload file types filter for admin
- Subscriber (with read permissions) cannot view Private posts
- delete_published_posts does not work
- Subsite access without being a member of the subsite in wp multisite network
- How can I add a custom role capability to use in a custom plugin?
- Restrict edit, but allow preview for custom post status
- How to set custom capabilities for custom taxonomies?
- Custom Capabilities for CPT and Problem with current_user_can()
- Which capabilities are available in Gravity Forms Salesforce plugin? [closed]
- WordPress: Custom User Role cannot access Custom Post Type | “Sorry, you are not allowed to access this page”
- Select other roles as custom post authors
- current_user_can(‘administrator’) not working in custom login
- Let editors view post in admin but not be able to perform a save/edit
- Unable to access custom plugin backend
- Remove specific administrator’s capability
- How to let a role handle media without post permissions
- User role and capablities only for 1 plugin
- WooThemes – Vendors / Bookings – Allow Vendors to manage resources
- creating different edit screens for different roles
- Add role and edit page capabilities
- What would prevent a custom role from viewing posts (both standard and custom)?
- Custom post type & role issues
- Want to add post to user dashboard