Removing Visit From Admin Bar
For quite some time I had a fix for this by using the remove action for each of the buddypress admin bar components which I did not want located in the bar. The remove_action for each item was place in each themes functions.php file I have in use on a wpms/mu install.
I recently upgraded both BP to 1.8 and WP to 3.5.2. I now have the Visit portion back in my Admin Bar only in the dashboard after the use of the below code.
I followed the information found in the codex:
It suggested to place similar code to whats code in bp-custom.php, this fixed the issue on most of the site except removing it from the dashboard.
remove_action( 'bp_adminbar_menus', 'bp_adminbar_authors_menu', 12 );
remove_action( 'bp_adminbar_menus', 'bp_adminbar_random_menu', 100 );
remove_action( 'bp_adminbar_menus', 'bp_adminbar_login_menu', 2 );
remove_action( 'bp_adminbar_menus', 'bp_adminbar_blogs_menu', 6 );
remove_action( 'bp_adminbar_menus', 'bp_adminbar_thisblog_menu', 6 );
remove_action( 'bp_adminbar_menus', 'bp-adminbar-visitrandom-menu', 100 );
//add_action('bp_adminbar_menus', 'my_adminbar_blogs_menu', 6);
How can I remove it from the entire site logged in or not and on the front end of the site or within the dashbaord.
You must be logged in to reply to this topic.