Sarathlal N

Hide search form in WordPress toolbar

Hide search form in WordPress toolbar

//Hide search form in WordPress toolbar
function hide_admin_bar_search () {
	echo '<style type="text/css">
	#adminbarsearch {
		display: none;
	}
	</style>';
}
add_action('admin_head', 'hide_admin_bar_search');
add_action('wp_head', 'hide_admin_bar_search');

Recent Posts

  1. Remove edit, view, trash and quick edit links within posts list of admin screen - WordPress
  2. PHP Errors not displaying or not logging - LAMP server - Solved
  3. Display all hooks sequentialy that run on a page - WordPress
  4. Get downloadable files of a downloadable product - WooCoomerce
  5. Add actions based on WooCoomerce order status

Your Questions / Comments

If you found this article interesting, found errors, or just want to discuss about them, please get in touch.