• Maplespace Inc.

    (@likebuttonsoftware)


    We’re using User Role Editor to manage a custom user role, and those users now need access to Breeze’s “Clear site cache” button. What permissions does Breeze require so that they can see this button from their WordPress dashboard?

    Thanks kindly!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author adeelkhan

    (@adeelkhan)

    Clear cache option enables only Admin and Editor roles.
    If you want to add the button, enable the permission of Admin OR Editor rights of that particular user.

    Thread Starter Maplespace Inc.

    (@likebuttonsoftware)

    Hi @adeelkhan thank you for your reply ??

    So it doesn’t check a specific permission like edit_posts or edit_pages?

    For security reasons we had to create custom roles outside of the default Administrator and Editor roles, so we can’t use those.

    As an alternative, is there a URL they could visit to clear the cache instead (or one I could create). For example https://website.com/wp-content/plugins/something/clearCache.php ?

    Plugin Author adeelkhan

    (@adeelkhan)

    Breeze clear cache by calling the functions. If you want to customize its according to your custom roles so you may proceed with it. There is another option is to call Admin/Editor rights under your custom roles through proper wp_hooks.

    Thread Starter Maplespace Inc.

    (@likebuttonsoftware)

    @adeelkhan thank you, I ended up modifying the code to allow this user role to see and use the clear cache functions.

    Can you describe those wp_hooks further? Do you mean there are hooks created by the Breeze plugin that I can use?

    Plugin Author adeelkhan

    (@adeelkhan)

    Hi
    There is not a single hook, it’s a hierarchy to execute the scenario.
    You may simply understand to read the code. But my recommendation is not to modify the code, it would be better to customize your user role condition to handle it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Need to enable Breeze button for custom user role’ is closed to new replies.