Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Last active Apr 22, 2019
Embed
What would you like to do?
Modify post(s) before SearchWP indexes them
<?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