Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // WooCommerce - Remove an option from the catalog sorting dropdown
- // Options: menu_order, popularity, rating, date, price, price-desc
- add_filter( "woocommerce_catalog_orderby", "custom_catalog_orderby", 20 );
- function custom_catalog_orderby( $orderby ) {
- unset( $orderby["date"] );
- return $orderby;
- } // end function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement