WC_Widget_Layered_Nav::get_main_tax_queryprotectedWC 4.4.0

Wrapper for WC_Query::get_main_tax_query() to ease unit testing.

Method of the class: WC_Widget_Layered_Nav{}

No Hooks.

Returns

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_main_tax_query();

Changelog

Since 4.4.0 Introduced.

WC_Widget_Layered_Nav::get_main_tax_query() code WC 9.9.5

protected function get_main_tax_query() {
	return WC_Query::get_main_tax_query();
}