Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Control whether SearchWP logs this search
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