Support for Custom Roles/Capabilites
-
Hi,
I’m wondering if you could add a hook to your class-admin.php create_menu function to support custom user roles/capabilities.
In my case I have editor and author users who need to clear the cache. The “Clear REST cache” option is available for these roles already in the admin bar but clicking it gives an unauthorized error. Therefore I have to edit class-admin.php and change ‘administrator’ to ‘edit_posts’ in the add_submenu_page call.
If you could add support for custom roles/capabilities it would be much appreciated!
Thanks,
Brian
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Support for Custom Roles/Capabilites’ is closed to new replies.