Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.