WC_Query::product_query_post_clauses()privateWC 1.0

Add extra clauses to the product query.

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

Хуков нет.

Возвращает

Массив. The updated product query clauses array.

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

// private - только в коде основоного (родительского) класса
$result = $this->product_query_post_clauses( $args, $wp_query );
$args(массив) (обязательный)
Product query clauses.
$wp_query(WP_Query) (обязательный)
The current product query.

Код WC_Query::product_query_post_clauses() WC 8.7.0

private function product_query_post_clauses( $args, $wp_query ) {
	$args = $this->price_filter_post_clauses( $args, $wp_query );
	$args = $this->filterer->filter_by_attribute_post_clauses( $args, $wp_query, self::get_layered_nav_chosen_attributes() );

	return $args;
}