WordPress at Your Fingertips
function is not described

WC_Widget_Layered_Nav::get_main_tax_query() protected WC 4.4.0

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

{} It's a method of the class: WC_Widget_Layered_Nav{}

No Hooks.

Return

Array.

Usage

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

Changelog

Since 4.4.0 Introduced.

Code of WC_Widget_Layered_Nav::get_main_tax_query() WC 5.8.0

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