Created
January 23, 2015 16:06
-
-
Save jchristopher/acd5119e990e60214780 to your computer and use it in GitHub Desktop.
Manipulate the post objects returned by a SearchWP query
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 | |
function my_searchwp_found_post_objects( $posts, $args ) { | |
// manipulate the $posts array in any way you'd like | |
return $posts; | |
} | |
add_filter( 'searchwp_found_post_objects', 'my_searchwp_found_post_objects', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment