Show CMP Basic Setup for user role Editor
-
Kia ora, no Aotearoa ahau.
I love this plugin ♡ I’d like to show the CMP Basic Setup to my Editor users in wp_admin. Currently it only shows to administrators. I can make a link appear in the top bar – but that only gives access to the page preview, not to settings. I have this network activated in Multisite.
I have a custom plugin for settings in the mu-plugins folder – this is the code I’m looking for:if( get_current_blog_id() === 13 ){
$user = wp_get_current_user();
if ( in_array( 'editor', (array) $user->roles ) ) {
// SHOW CMP BASIC SETUP <-- <-- <-- <-- THIS PLEASE
}
}This would be lovely, thank you!
Ngā mihi nui 🙏
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.