Support » Plugin: Google Tag Manager for WordPress » Is usage or setup by an editor or non-administrator possible?

  • Hi Thomas, thanks for the great plugin!

    Our SEO manager would like to use this plugin on a site but he does not and cannot have administrator access.

    If I change ‘manage_options’ to ‘wpseo_manage_options’ capability in line 1280 to the admin.php file, the SEO Manager view all options, but cant edit, when push save changes button show warning text “You need a higher level of permission.
    Sorry, you are not allowed to customize this site.”

    Can you make it possible for a non administrator to manage Google Tag Manager for WordPress, please?


Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter misagues


    I found a solution example for “editor” role user in the CF7 Plugin, but i don’t see adapting to GTM4WP:

    // set editor role for contact-form-cfdb-7 plugin
        include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
        if ( is_plugin_active( 'contact-form-cfdb7/contact-form-cfdb-7.php' ) ) {
            // Add custom capability
            $role = get_role( 'editor' );
                $role->add_cap( 'cfdb7_access' );


    Plugin Author Thomas Geiger



    Thanks for the details!
    I will do my best to add this soon but I can not give you an ETA.
    However if you or your dev can add it to the plugin code, I am more than happy to add it via a GitHub PR:

    Thread Starter misagues



    Here says is possible, but you not say how.

    Please, say a code hook for make it work provisionally. Until you can integrate it into the plugin.
    I would really appreciate it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Is usage or setup by an editor or non-administrator possible?’ is closed to new replies.