Hide Hummingbird menu for administrators

Looking for a way to hide Hummingbird menu from everybody except super admin, from the admin’s end on all subsites.

Currently, the settings are set to “Only Super Admins can configure Asset Optimization”, so the Hummingbird menu is still showing on the subsites with caching and performance sections.

  • Nastia
    • Ex Staff

    Hello Craig

    Hope you’re doing well!

    After some troubleshooting, our second level support informed me that the menu ID is depending on what admin options are selected in the network options. Please try the following solution, upload the attached file to the wp-content/mu-plugins folder. This should hide the Hummingbird menu on the subsite for all users, except user with ID-=1, which is a super admin.

    Let us know how it went!

    Cheers,

    Nastia

  • Craig
    • Design Lord, Child of Thor

    Hey Nastia, yes that’s worked perfectly :slight_smile:

    Looks like the only difference from the code you supplied was the ‘advanced’ section of hummingbird wasn’t included the first time around

    Thanks for sorting this!