WC_Query::remove_ordering_args()publicWC 1.0

Remove ordering queries.

Method of the class: WC_Query{}

No Hooks.

Return

null. Nothing (null).

Usage

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

WC_Query::remove_ordering_args() code 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' ) );
}