WINP_SNIPPETS_TAXONOMY, 'hide_empty' => true, ] ); if ( WINP_SNIPPETS_POST_TYPE == $type && ! empty( $terms ) ) { ?> WINP_SNIPPETS_TAXONOMY, 'field' => 'slug', 'terms' => [ WINP_HTTP::get( 'winp_filter_tag', '' ) ], 'operator' => 'IN', ], ]; $query->set( 'tax_query', $taxquery ); } if ( WINP_SNIPPETS_POST_TYPE == $type && is_admin() && 'edit.php' == $pagenow && WINP_HTTP::get( 'winp_filter_type', '' ) ) { $meta_query = [ [ 'key' => 'wbcr_inp_snippet_type', 'value' => WINP_HTTP::get( 'winp_filter_type', '' ), 'compare' => '=', ], ]; $query->set( 'meta_query', $meta_query ); } } }