Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created December 1, 2014 04:51
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/248f854c88e44ffe7ef3 to your computer and use it in GitHub Desktop.
Save jchristopher/248f854c88e44ffe7ef3 to your computer and use it in GitHub Desktop.
<?php
// 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