WC_Query::remove_ordering_args()publicWC 1.0

Remove ordering queries.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

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

Код WC_Query::remove_ordering_args() WC 8.7.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' ) );
}