Automattic\WooCommerce\Blocks\BlockTypes

ProductCollection::get_queries_by_applied_filters()privateWC 1.0

Return queries that are generated by query args.

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

Хуков нет.

Возвращает

Массив.

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

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

Код ProductCollection::get_queries_by_applied_filters() WC 9.4.2

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(),
	);
}