-
-
Save searchwpgists/7253f031f7f7ed52b15f59ebc3aa466e to your computer and use it in GitHub Desktop.
Customize the results returned by SearchWP
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 the results returned by SearchWP. | |
add_filter( 'searchwp\query\results', function( $results, $query ) { | |
// This is where you can manipulate the $results array of results. | |
return $results; | |
}, 30, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment