Created
March 18, 2015 13:47
-
-
Save jchristopher/f8aaa55eaabbc647fc58 to your computer and use it in GitHub Desktop.
Prevent SearchWP from initializing
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 | |
// prevent SearchWP from initializing itself unless it's a search page | |
function my_searchwp_init() { | |
return is_search(); | |
} | |
add_filter( 'searchwp_init', 'my_searchwp_init' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment