Last active
April 22, 2019 13:20
-
-
Save jchristopher/cb496d069a73c79985a3e47295dfd459 to your computer and use it in GitHub Desktop.
Modify post(s) before SearchWP indexes them
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 | |
// Modify post(s) before SearchWP indexes them. | |
add_filter( 'searchwp_pre_set_post', function( $the_post ) { | |
// TODO: Modify $the_post in any way you see fit. | |
return $the_post; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment