Created
June 20, 2018 01:56
-
-
Save kLOsk/76e2de9cf0f425e2a46d1e1e57ee85bd to your computer and use it in GitHub Desktop.
filter.php
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
add_filter( 'facetwp_is_main_query', function( $is_main_query, $query ) { | |
if ( '' !== $query->get( 'facetwp' ) ) { | |
$is_main_query = (bool) $query->get( 'facetwp' ); | |
} | |
return $is_main_query; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment