Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created March 18, 2015 13:42
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jchristopher/a0e4d5988623dc75dc8d to your computer and use it in GitHub Desktop.
Control whether SearchWP logs this search
<?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