Created
October 2, 2014 15:18
-
-
Save intelliweb/98561715aa06c7e90ec9 to your computer and use it in GitHub Desktop.
WP: The search form in the admin bar can cause a security warning over HTTPS (SSL). This snippet disables the search form in the 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 | |
// Disable search icon and input in admin bar | |
add_action( 'wp_before_admin_bar_render', 'intw_disable_admin_bar_search' ); | |
function intw_disable_admin_bar_search() { | |
global $wp_admin_bar; | |
$wp_admin_bar->remove_menu('search'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment