Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created March 18, 2015 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jchristopher/9f8ffc56ceb35892251e to your computer and use it in GitHub Desktop.
Save jchristopher/9f8ffc56ceb35892251e to your computer and use it in GitHub Desktop.
Pre-process content before it's sent to SearchWP's indexer
<?php
function my_searchwp_indexer_pre_process_content( $content ) {
// TODO: manipulate $content in any way you want
return $content;
}
add_filter( 'searchwp_indexer_pre_process_content', 'my_searchwp_indexer_pre_process_content' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment