Created
March 18, 2015 13:42
-
-
Save jchristopher/a0e4d5988623dc75dc8d to your computer and use it in GitHub Desktop.
Control whether SearchWP logs this search
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 my_searchwp_log_search( $log, $engine, $search_terms, $number_of_results ) { | |
// TODO: check to see whether you want to log | |
return true; // false to prevent logging | |
} | |
add_filter( 'searchwp_log_search', 'my_searchwp_log_search', 10, 4 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment