Last active
May 15, 2020 14:15
-
-
Save aslamahamed13/d662cbcfcb33e93bb82ef3da2df9d613 to your computer and use it in GitHub Desktop.
Electro - Hide sortings
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
function ec_child_woocommerce_catalog_orderby_change( $orderby ) { | |
unset($orderby["rating"]); | |
unset($orderby["price"]); | |
unset($orderby["date"]); | |
unset($orderby["price-desc"]); | |
return $orderby; | |
} | |
add_filter( "woocommerce_catalog_orderby", "ec_child_woocommerce_catalog_orderby_change", 20 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment