Support » Plugin: Debug Bar » Multisite Support?

Viewing 1 replies (of 1 total)
  • Plugin Contributor jrf

    (@jrf)

    Just in case you’re still wondering – or for the next person who has the same question -:

    The Debug Bar in a multi-site setup will show only to super admins.

    Since version 0.9, however, you can selectively overrule this using the debug_bar_enable filter.

    In code, this would be something like:

    
    // Make sure you add this filter before the <code>admin_bar_init</code> action is run!
    add_filter( 'debug_bar_enable', 'my_debug_bar_enabler' );
    
    function my_debug_bar_enable( $enabled ) {
    	if ( current_user_can( 'manage_options' ) ) {
    		$enabled = true;
    	}
    
    	return $enabled;
    }
    

    Hope this helps 😉

Viewing 1 replies (of 1 total)
  • The topic ‘Multisite Support?’ is closed to new replies.