Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WooCommerce - Custom catalog order by.
<?php
function custom_woocommerce_catalog_orderby( $items ) {
unset( $items['price'] );
unset( $items['price-desc'] );
return $items;
}
add_filter( 'woocommerce_catalog_orderby', 'custom_woocommerce_catalog_orderby' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.