ControlledChaos
4/7/2015 - 4:28 AM

Remove Search from Admin Bar

Remove Search from Admin Bar

<?php

function ccd_disable_adminbar_search() {
  
  global $wp_admin_bar;
  
  $wp_admin_bar->remove_menu( 'search' );

}
add_action( 'wp_before_admin_bar_render', 'ccd_disable_adminbar_search' );

?>

Remove Search from Admin Bar

WordPress Snippet