WC_Query::get_main_tax_query()

Get the tax query which was used by the main query.


Description Description


Return Return

(array)


Top ↑

Source Source

File: includes/class-wc-query.php

	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;
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.