Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Vladimir Garagulya

    (@shinephp)

    Hi,

    This plugin protects its menu using WordPress built-in ‘manage_options’ user capability.

    Thread Starter alchan123

    (@alchan123)

    Hello,

    thanks for answer, It’s there a hook to override this?

    Thanks for answer,

    A

    Plugin Author Vladimir Garagulya

    (@shinephp)

    Hi,

    There is no easy way to override this. Plugin uses ‘manage_options’ capability directly, not via custom filter, as some other plugin do:

    function admin_menu() {
    	add_menu_page(
    		'WPClever',
    		'WPClever⚡',
    		'manage_options',
    		'wpclever',
    		array( &$this, 'welcome_content' ),
    		WPC_URI . 'assets/images/wpc-icon.svg',
    		26
    	);
            add_submenu_page( 'wpclever', 'About', 'About', 'manage_options', 'wpclever' );
    }
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘don’t find specific plugin in capabilities’ is closed to new replies.