Skip to content

Instantly share code, notes, and snippets.

@claudiosanches
Created February 18, 2014 17:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save claudiosanches/9076051 to your computer and use it in GitHub Desktop.
Save claudiosanches/9076051 to your computer and use it in GitHub Desktop.
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