Debug Bar
Debug Bar not visible to multisite subsite admins, why? [PATCH] (2 posts)

  1. lkraav
    Posted 3 years ago #

    So I noticed ! is_super_admin() in $this->init(). Is there a specific reason for this? Topic subject states my goal. Here's something on a works-for-me level, perhaps you guys could comment what a sustainable solution would be?

    # Make Debug Bar available for multisite subsite admins
    function is_super_admin() {
        return current_user_can( "remove_users" );
    function init() {
        if ( ! $this->is_super_admin() || ! is_admin_bar_showing() || $this->is_wp_login() )
    function init_ajax() {
        if ( ! $this->is_super_admin() )


  2. goldenapples
    Posted 3 years ago #

    I'd like to bump this issue, and maybe suggest making the admin bar display a custom capability rather than just dependant on is_super_admin().

    I'm setting up QA testing for a project and it would helpful if my testers could see the debug bar, even while using "Editor" and "Author" accounts for testing.

    Yes, its easy enough to hack the plugin. But it would be even easier if there was a way to give certain users access to the debug bar without hacking the plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Debug Bar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic