Change User Role For WP Rocket Settings

⛔️ Deprecated: As of version 3.4 use this guide instead.

By default, WP Rocket’s settings are available to users that have the Administrator user role; if you are on multisite, this means individual site administrators as well as Super Admins for the network.

If you want to modify the default set of required user capabilities for WP Rocket, you can do so with the following small helper plugin.

Grant Site Editors Access to WP Rocket’s Settings

You can lower the barrier to access WP Rocket’s settings and enable site editors to control its options by downloading, installing, and activate the following small helper plugin:

📥  Download (.zip): WP Rocket | Settings Access

Developers: You can find the code for this plugin on GitHub.

Multisite: Restrict Settings to Super Admins Only

In a Multisite environment you can use the same plugin in order to restrict settings access to Super Admins for WP Rocket, by comment these 3 lines, like this :

	 * Allow Editors to manage WP Rocket settings.
	if ( current_user_can( 'editor' ) ) {
		$capability = 'editor';
	 * Alternate example: restrict settings access to Multisite super admins.
	 if ( ! current_user_can( 'manage_network' ) ) {
		$capability = 'manage_network';
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.