Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Customize the results returned by SearchWP
<?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