Hi Migster,
We hadn’t considered adding the ability to allow other users to access the back end administration pages. By default, the admin is the only one allowed to access the pages.
I am going to push out a 5.3.1 update that will add a new filter into the core code of the plugin. Using the filter, you’ll be allowed to grant access to the administration pages to any user on your site.
Sit tight while I get things packaged up and pushed out the repo!
Once pushed out, I’ll provide you with the necessary code to grant access to your editors.
Thanks,
Evan
Hi Migster,
We’ve just pushed out a 5.3.1 release, which now has the custom filter to allow you to grant new user roles access to the YIKES MailChimp administration menus on your site.
Here is an example function, using our new filter to allow editors to access the YIKES MailChimp pages.
/*
* The following will pass in the 'edit_others_pages' capability,
* to allow editors to access the YIKES MailChimp admin pages.
* You can find a full list of capabilities here :
* http://codex.wordpress.org/Roles_and_Capabilities
* Remember: You are passing in capabilities, not user roles.
*/
function yikes_mailchimp_allow_editors( $capabillity ) {
$capabillity = 'edit_others_pages';
return $capabillity;
}
add_filter( 'yks_mailchimp_user_role' , 'yikes_mailchimp_allow_editors' );
You’ll want to add the above code into your active themes function.php file. Once added, save the file and re-load the dashboard while logged into an editor account. You should then have access to the YIKES MailChimp admin pages.
Let us know if the filter and function work for you!
Thanks,
Evan
Hi Evan
Thanks for the incredible response to this, I can confirm it all works perfectly.
Cheers
migs
Hi Migs,
Awesome! I’m glad that wasn’t such a terrible solution for you. If you have any other requirements that may help you along the way, feel free to reach out and we’ll see what we can do about getting them built into the core of the plugin.
Best of luck with everything, Migs!
Evan