Resolved.
function remove_buddypress_admin_bar_init() {
echo '<style type="text/css">
div#wp-toolbar > ul#wp-admin-bar-top-secondary > li#wp-admin-bar-my-account > div.ab-sub-wrapper > ul#wp-admin-bar-my-account-buddypress {
display: none !important;
}
</style>';
}
add_action( 'init', 'remove_buddypress_admin_bar_init' );
Thanks! ๐
thanks for posting your solution
Itโs not a correct way, because if I enable this action, I donโt show the image in media section!
Why?
Thanks! ๐
@robertosalemi
if you still have an issue contact BuddyPress support
https://buddypress.org/support/
Resolved.
function admin_bar_remove_this(){
global $wp_admin_bar;
$wp_admin_bar->remove_node('my-account-buddypress');
}
add_action('wp_before_admin_bar_render','admin_bar_remove_this');
I hope this code is useful for someone.
great – glad you’re fixed