Allow editor role to access plugin settings

By default, the plugin will only allow users with the "Administrator" role access to the plugin settings pages. This means that only administrators can view your MailChimp API key, edit your sign-up forms and control the various integrations.

If you want to allow other user roles access to the settings pages then you can do this by using a so-called filter hook.

The following code will allow "Editors" to access the MailChimp for WordPress settings.

add_filter( 'mc4wp_admin_required_capability', function( $capability ) {
	return 'edit_pages';
} );
Not sure where to add this code? Here's how and where to add code to your site.

Was this article helpful? ·