WC_Query::product_query_post_clauses()publicWC 1.0

Add extra clauses to the product query.

Method of the class: WC_Query{}

No Hooks.

Return

Array. The updated product query clauses array.

Usage

$WC_Query = new WC_Query();
$WC_Query->product_query_post_clauses( $args, $wp_query );
$args(array) (required)
Product query clauses.
$wp_query(WP_Query) (required)
The current product query.

WC_Query::product_query_post_clauses() code WC 9.7.1

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