[wp-trac] [WordPress Trac] #27831: Hide Comments Icon & Count from Toolbar when there are no pending comments

WordPress Trac noreply at wordpress.org
Wed Apr 16 15:57:12 UTC 2014


#27831: Hide Comments Icon & Count from Toolbar when there are no pending comments
------------------------------+------------------------------
 Reporter:  celloexpressions  |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Toolbar           |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:  ui
------------------------------+------------------------------

Comment (by Denis-de-Bernardy):

 You can remove them using a plugin, btw:

 {{{
 add_action('wp_before_admin_bar_render', function() {
     global $wp_admin_bar;
     $wp_admin_bar->remove_menu('comments');
 });
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27831#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list