Created
December 1, 2014 04:51
-
-
Save jchristopher/248f854c88e44ffe7ef3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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