WC_Query::product_query_post_clausespublicWC 1.0

Add extra clauses to the product query.

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

Хуков нет.

Возвращает

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

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

$WC_Query = new WC_Query();
$WC_Query->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 10.9.4

public 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;
}