Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: remove admin-bar


Burt Adsit
Participant

@burtadsit

In bp-core-adminbar.php are the two hooks:

add_action( ‘wp_footer’, ‘bp_core_admin_bar’, 8 );

add_action( ‘admin_footer’, ‘bp_core_admin_bar’ );

These fire up the admin bar. If you want to remove it just put the following in your bp-custom.php file:

remove_action( ‘wp_footer’, ‘bp_core_admin_bar’, 8 );

remove_action( ‘admin_footer’, ‘bp_core_admin_bar’ );

You’ll have to wrap those two calls in some logic of your own creation to decide when to not display the admin bar.

Skip to toolbar