WC_Query::remove_ordering_args()publicWC 1.0

Remove ordering queries.

{} Это метод класса: WC_Query{}

Хуков нет.

Возвращает

null. Ничего.

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

$WC_Query = new WC_Query();
$WC_Query->remove_ordering_args();

Код WC_Query::remove_ordering_args() WC 7.1.0

public function remove_ordering_args() {
	remove_filter( 'posts_clauses', array( $this, 'order_by_price_asc_post_clauses' ) );
	remove_filter( 'posts_clauses', array( $this, 'order_by_price_desc_post_clauses' ) );
	remove_filter( 'posts_clauses', array( $this, 'order_by_popularity_post_clauses' ) );
	remove_filter( 'posts_clauses', array( $this, 'order_by_rating_post_clauses' ) );
}