WordPress at Your Fingertips
function is not described

WC_Query::remove_ordering_args() public WC 1.0

Remove ordering queries.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Query::remove_ordering_args() WC 5.6.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' ) );
}