WC_Query::product_query_post_clauses()privateWC 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

// private - for code of main (parent) class only
$result = $this->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 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;
}