-
-
Save jchristopher/bd9daa8c7f402c80d2f1e4b1e9a248ba to your computer and use it in GitHub Desktop.
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 | |
// Customize whether Metrics logs this search | |
add_filter( 'searchwp_metrics_log_search', function( $log, $engine, $query, $hits ) { | |
// $log is whether or not to log the search | |
// $engine is the engine being used for the search | |
// $query is the search query | |
// $hits is the number of results found for this search | |
return $log; | |
}, 10, 4 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment