Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 );
Add Comment
Please, Sign In to add comment