• Resolved Brian P

    (@bburgay)


    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)
  • Thread Starter Brian P

    (@bburgay)

    I no longer need this functionality as I’m no longer using the plugin. Thanks.

    Plugin Author Richard Korthuis

    (@rockfire)

    Hi @bburgay

    Thank you for your suggestion. Eventhough you are not using our plugin anymore (which we are sorry to hear) we will still add it to our todo list, since it is a good addition.

    Plugin Author Richard Korthuis

    (@rockfire)

    We just released a new version of our plugin which includes a filter which allows you to change the role/capability.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Support for Custom Roles/Capabilites’ is closed to new replies.