This file contains hidden or 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 | |
// Todo: change "edd_wish_list" to the correct post type | |
function fwp_ignore_edd_wishlist_query( $is_main_query, $query ) { | |
if ( isset( $query->query_vars['post_type'] && 'edd_wish_list' == $query->query_vars['post_type'] ) ) { | |
$is_main_query = false; // ignore the EDD Wish List query | |
} | |
return $is_main_query; | |
} | |
add_filter( 'facetwp_is_main_query', 'fwp_ignore_edd_wishlist_query', 10, 2 ); |