• Resolved Lindsay Heydon

    (@lindsay-heydon)


    Is there some code that I could add to my functions.php to be able to allow the current user if an editor (edit_others_pages) to have access to the Autoptimise in the admin toolbar – so they can Delete Cache?

    Something along these lines (currently ‘manage_options’)???
    if ( current_user_can( ‘edit_others_pages’ ) && apply_filters( ‘autoptimize_filter_toolbar_show’, true ) )

    Many thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    not in functions.php no, the capabilities check in autoptimizeToolbar.php does not have a filter to hook into. I might look into that at a later point (it is on the backlog, albeit not with high priority), but in the mean time you could update line 26 in autoptimizeToolbar.php ?

    Thread Starter Lindsay Heydon

    (@lindsay-heydon)

    Many thanks, I’ve done that for now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Allow editors to Delete Cache from Admin Toolbar’ is closed to new replies.