Created
May 15, 2020 14:15
-
-
Save aslamahamed13/5e7bd6a917e017d3caa12fca3c6790ac 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