Automattic\WooCommerce\Blocks\BlockTypes

ProductQuery::get_queries_by_applied_filters()privateWC 1.0

Return queries that are generated by query args.

Метод класса: ProductQuery{}

Хуков нет.

Возвращает

Массив.

Использование

// private - только в коде основоного (родительского) класса
$result = $this->get_queries_by_applied_filters();

Код ProductQuery::get_queries_by_applied_filters() WC 8.7.0

private function get_queries_by_applied_filters() {
	return array(
		'price_filter'        => $this->get_filter_by_price_query(),
		'attributes_filter'   => $this->get_filter_by_attributes_query(),
		'stock_status_filter' => $this->get_filter_by_stock_status_query(),
		'rating_filter'       => $this->get_filter_by_rating_query(),
	);
}