This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Modify the default WooCommerce orderby dropdown | |
// | |
// Options: menu_order, popularity, rating, date, price, price-desc | |
// In this example I'm removing price & price-desc but you can remove any of the options | |
function patricks_woocommerce_catalog_orderby( $orderby ) { | |
unset($orderby["price"]); | |
unset($orderby["price-desc"]); | |
return $orderby; | |
} |