Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// fix conflict between Intuitive CPO plugin and SearchWP
function fix_hipco_interference( $query ) {
if( class_exists( 'SearchWP' ) && SWP()->active ) {
$query->query['suppress_filters'] = true;
$query->query_vars['suppress_filters'] = true;
add_action( 'pre_get_posts', 'fix_hipco_interference', 9999 );
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.