• 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)
  • Thread Starter someonebutwhere

    (@someonebutwhere)

    Does anyone know how to make the settings for this plugin available when logged in as Editor? I’ve also tested this in a single site install to see if it was multisite preventing me, but no.

    I’ve made CMP available for Editor in the Top Bar, but when I access this (from another browser where I’m logged in as editor) wordpress tells me “Sorry, you are not allowed to access this page.”

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.