Allow editor role to clear cache within admin

[ad_1]

Here is how the redirection plugin does it or used to in an earlier version. i think they updated it since.

add_management_page( __( "Redirection", 'redirection' ), __( "Redirection", 'redirection' ), apply_filters( 'redirection_role', 'administrator' ), basename( __FILE__ ), array( &$this, "admin_screen" ) );

Then in functions.php you can add the editor access:

/**
 * Redirection Plugin Editor access
 */
add_filter( 'redirection_role', 'redirection_to_editor' );
function redirection_to_editor() {
    return 'edit_pages';
}

Dear @kozmicblues

Thank you for taking the time to provide your feedback. Your insights are invaluable to us and play a crucial role in our continuous development as a company.

Regarding the specific request you mentioned, I am pleased to inform you that we have already included it in our backlog. Our dedicated Product and Development teams will prioritize it in future updates, aiming to achieve the outcome you desire.

If there is an issue with the automatic cache purge, please contact us for immediate support at support.nitropack.io or via email at [email protected].

At NitroPack, we are committed to constantly improving our services and ensuring the highest level of client satisfaction. Should you have any further questions or additional suggestions, please do not hesitate to reach out. Our team is always ready to listen and assist you.

Best regards,
Plamen Hristanov, Head of Support, NitroPack

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer