WordPress at Your Fingertips
function is not described

WC_Query::order_by_price_desc_post_clauses() public WC 1.0

Handle numeric price sorting.

{} It's a method of the class: WC_Query{}

No Hooks.

Return

Array.

Usage

$WC_Query = new WC_Query();
$WC_Query->order_by_price_desc_post_clauses( $args );
$args(array) (required)
Query args.

Code of WC_Query::order_by_price_desc_post_clauses() WC 5.6.0

public function order_by_price_desc_post_clauses( $args ) {
	$args['join']    = $this->append_product_sorting_table_join( $args['join'] );
	$args['orderby'] = ' wc_product_meta_lookup.max_price DESC, wc_product_meta_lookup.product_id DESC ';
	return $args;
}