Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Have SearchWP perform searches in WooThemes' Sensei
<?php
// SearchWP/Sensei compat
function searchwp_sensei_compat() {
if ( is_post_type_archive() && is_search() ) {
add_filter( 'searchwp_outside_main_query', '__return_true' );
}
}
add_action( 'parse_query', 'searchwp_sensei_compat' );
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.