Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Remove Options - alphabet order - WooCommerce
<?php
// Remove Options
add_filter( 'woocommerce_catalog_orderby', 'custom_woocommerce_remove_filter' );
function custom_woocommerce_remove_filter( $catalog_orderby ) {
unset( $catalog_orderby['popularity'] );
unset( $catalog_orderby['rating'] );
unset( $catalog_orderby['price'] );
unset( $catalog_orderby['price-desc'] );
return $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.