[resolved] Show WP admin bar on multisite only on "my" sites (3 posts)

  1. xmacinka
    Posted 4 years ago #

    I have 2 sites in multisite:
    xxx.com - main site with network admin "superadmin"
    demo1.xxx.com - another site with admin "demoadmin"

    Currently WP is showing admin bar on xxx.com when "demoadmin" is logged in. I need to show adminbar only if the user has admin rights to the site (= show admin bar only on "his" site).

    Desired behavior: show admin bar on xxx.com for superadmin only, admin bar on demo1.xxx.com for demoadmin or superadmins only.

    Any ideas?

  2. http://codex.wordpress.org/Plugin_API/Filter_Reference/show_admin_bar

    One of the examples addresses this directly.

  3. xmacinka
    Posted 4 years ago #

    It works. Thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic