WC_Admin_List_Table_Products::order_by_price_asc_post_clauses()publicWC 1.0

Handle numeric price sorting.

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

Хуков нет.

Возвращает

Массив.

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

$WC_Admin_List_Table_Products = new WC_Admin_List_Table_Products();
$WC_Admin_List_Table_Products->order_by_price_asc_post_clauses( $args );
$args(массив) (обязательный)
Query args.

Код WC_Admin_List_Table_Products::order_by_price_asc_post_clauses() WC 8.7.0

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