WordPress Snippet
Last active
August 8, 2016 20:16
-
-
Save ControlledChaos/15b8bfbdb8c068bca794 to your computer and use it in GitHub Desktop.
Remove Search from Admin Bar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment