You appear to be a bot. Output may be restricted
Description
Get the tax query which was used by the main query.
Usage
$array = WC_Query::get_main_tax_query();
Parameters
Returns
array
Source
File name: woocommerce/includes/class-wc-query.php
Lines:
1 to 5 of 5
public static function get_main_tax_query() { $tax_query = isset( self::$product_query->tax_query, self::$product_query->tax_query->queries ) ? self::$product_query->tax_query->queries : array(); return $tax_query; }