Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How do I clear the menu bar?


Burt Adsit
Participant

@burtadsit

The admin bar gets triggered on every ‘wp_footer’ action that your theme triggers. Which is on every page load. There is no function call from a php file that does it. bp is almost completely driven by wp ‘actions’. Everything gets loaded, defined and ready for the events that are defined to make things happen.

Everybody is posting around each other here.

The ‘wp_footer’ action is triggered by your theme’s usage of (normally) get_footer()

which calls wp_footer()

which does do_action(‘wp_footer’)

which triggers bp_core_admin_bar() in bp-core-adminbar.php

which gets you the admin bar.

*deep breath*, let it out slowly now… :)

Skip to toolbar