WC_Query::remove_ordering_args()
Remove ordering queries.
Method of the class: WC_Query{}
No Hooks.
Return
null
. Nothing.
Usage
$WC_Query = new WC_Query(); $WC_Query->remove_ordering_args();
WC_Query::remove_ordering_args() WC Query::remove ordering args code WC 7.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' ) ); }