WordPress at Your Fingertips
function is not described

WC_Query::product_query_post_clauses() private WC 1.0

Add extra clauses to the product query.

{} It's a 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.

Code of WC_Query::product_query_post_clauses() WC 5.6.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, $this->get_layered_nav_chosen_attributes() );

	return $args;
}