Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created December 8, 2013 19:34
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/7862789 to your computer and use it in GitHub Desktop.
Save jchristopher/7862789 to your computer and use it in GitHub Desktop.
Inject your own table JOINs in the SearchWP main algorithm
<?php
function my_searchwp_query_join( $sql, $postType, $engine ) {
// modify $sql to your liking
return $sql;
}
add_filter( 'searchwp_query_join', 'my_searchwp_query_join', 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment