In the similar scenario, I had used Capability Manager Enhanced to customize capabilities. It will allow you to change capabilities of any role without diving into codes. Please take a look.
Related Posts:
- How to keep the capability of users and disable Gutenberg editor in WordPress?
- Shortcode for Listing Users from Meta Value?
- Query for user roles
- Execute PHP code only with specific user role
- How to Add a cutsom slug to my custom author role
- Execute function only for specific user roles
- Allow a user or role to view drafts and previews, but not other admin privileges?
- Hide payment method based on user role AND minimum cart value
- Edit a function to take different actions based on user role
- Add another role to a user when they click a button?
- Get author meta of all writers
- Custom Admin Menu Report for Specific User ID
- Error Warning: Declaration of description_walker::start_el after PHP upgrade [duplicate]
- Mega Menu Walker
- Displaying Logged-In User Name in WordPress Menu
- Autoloading in Child Theme
- How to add a class to the attachment images
- Execute a shortcode when clicking on a image
- add_rewrite_rule with bottom priority doesn’t handle the WordPress pages
- Successful or Error Message after running mysql code in functions.php
- How can one utilize a variable as a callback function name for add_settings_field
- Change logo based on incoming domain
- Count the number of times the search form template gets included on a page
- PHP code inside shortcodes
- How do I display a user’s previous orders as a select box option on a product?
- Adding Default Settings to Theme My Login plugin
- Remove meta description on certain pages
- Image media upload metabox
- How to combine wordpress_logged_in cookies in one cookie?
- Woocommerce related product text
- esc_html_e() is not translating string in wordpress [closed]
- WordPress Gravatar filter is removing my custom attributes
- Incorrect amount of posts returned when filtering related Woo products by custom taxonomy
- Limit 1 global comment per minute
- Remove echo from shortcode
- Is there a way to conditionally check whether a WordPress post title is empty?
- Copyright info change – Corporate Plus Theme PHP [closed]
- Inject class in body when particular page template is used
- Echo a function inside a function
- Use WordPress function in php file
- How to list posts from a plugin taxonomy?
- wp_force_remove_style’ not found
- Pagination on Custom Post
- WordPress redirect redirecting too many times or not at all
- how to save checkbox data for custom setting?
- Add product to cart for user – WC()->cart->add_to_cart [closed]
- Enqueing External JS on the remote server JS
- iframe not showing in content on blog page
- Need to Modify a WordPress Shortcode with another wordpress shortcode
- Get the name of menu item with wp_nav_menu
- How to add aria role and schema markup to custom walker container
- Remove submenu item from list
- Customize field names in backend profile edit page through function.php [duplicate]
- Plugin: Front-end Editor – User role specific editable content?
- Insert content into head tag with function
- User filter posts by year
- bp-custom.php is not working on a WordPress multisite environment. how to fix it?
- Getting text from custom field from customizer
- Time Delay a URL Redirect for Specific Page
- Isn’t Returning Value While Using SELECT COUNT(*) FROM {$wpdb->prefix}
- Adding wp users ID into a link address from a DIVI modul
- Limit Search to Product Pages only unless I’m on Blogpage or Blogposts
- WP query posts BUT show the most recent and one per author
- Block error message in foreach loop when looping through ACF field
- Include User ID in iFrame URL
- Run a sql (update) after 12 hours after the user login. Woocommerce users
- Wp_Schedule_Event every few minutes doesn’t work
- File from parent theme imported to child theme doesn’t work – any ideas?
- shortcodes, custom php and their errors
- In a foreach loop, how can I add a meta value if it doesn’t exist?
- How to center all text body in single.php at once?
- Access WP files on “server 1”, from “server 2” – using wp-load on an external website
- Remove node from multisites?
- How to include a function in a template with template tag
- wordpress all post filter by year
- How to add custom text near category/tag title in WordPress Twenty Fifteen Theme?
- Pulling a variable into the wp_nav_menu function
- Popular Post Not Show
- Echo multiple tasks if a common function exists
- Use WP_Query Data In Cookie
- Extend the WP_Customize_Image_Control class to change its non-frame $button_labels
- WordPress styling recent post
- syntax error unexpected ‘}’ at 364 line
- get_post_meta no longer working
- Highlight posts currently being edited on multiple editor site?
- Showing all post from all post type in admin backstage
- Pagination not displaying
- Setting WooCommerce currency programmatically
- Masking external links with internal link for member-only
- Shortcode to include PHP file, pass various parameters to include?
- Why can’t I include echo inside a variable? [closed]
- Assign new post author IF another user in custom field on post transition
- Create and publish a new post every Monday, listing the post titles and links to the posts published during the previous week
- How do I change the Go To Categories link in the term_updated_messages
- Dynamic Email Handler with ‘header (“Location: …’
- How to lock users account until approvation
- WooCommerce: write featured image dimensions to custom fields in product’
- Generate and upload screenshot as featured image for user-submitted post
- How to create a User Role and give permission to only use Web Stories plugin?
- transition_post_status hook, works – but not if the post is new