custom_params['exclude_taxonomies']; if ( count( $taxonomies_to_exclude ) ) { $tax_query = []; foreach ( $taxonomies_to_exclude as $slug ) { $tax_query[] = [ 'taxonomy' => $slug, 'operator' => 'NOT EXISTS', ]; } $this->custom_args['tax_query'] = $tax_query; } } }