Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
add solution to remove menu item in Admin Bar 3 for "My Sites" in blo…
Browse files Browse the repository at this point in the history
…g list of Multisite network
  • Loading branch information
bueltge committed Dec 4, 2011
1 parent 8f04457 commit f5987ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions remove-comments-absolute.php
Expand Up @@ -203,6 +203,9 @@ public function remove_comments_areas () {
* $return void
*/
public function admin_bar_render () {
// remove comment item in blog -list for "My Sites" in Admin Bar
if ( isset( $GLOBALS['blog_id'] ) )
$GLOBALS['wp_admin_bar'] -> remove_menu( 'blog-' . $GLOBALS['blog_id'] . '-c' );
// remove entry in admin bar
$GLOBALS['wp_admin_bar'] -> remove_menu( 'comments' );
}
Expand Down

0 comments on commit f5987ed

Please sign in to comment.