I want to give full permission to editor user to access a particular plugin MC4WP: Mailchimp for WordPress https://wordpress.org/plugins/mailchimp-for-wp/
For it added below code in fuctions.php file inside child theme folder
add_filter('mc4wp_admin_required_capability', function($capability)
{
return 'edit_pages';
});
Editor can access mailchimp plugin, but if editor user try click save button to save API key in plugin setting then getting error.
You need a higher level of permission. Sorry, you are not allowed to
manage options for this site.
I am using Advanced Access Manager plugin https://wordpress.org/plugins/advanced-access-manager/, in plugin setting i have give full permission to editor user for mailchimp plugin, check screenshot.
but not working.
MailChimp for WordPress comes with a range of action and filter hooks – https://github.com/ibericode/mc4wp-snippets/blob/master/hooks.md