-
-
Save Kaiderella/08e7545d436124647bdea4f906c4e718 to your computer and use it in GitHub Desktop.
Loại bỏ tính năng sắp xếp sản phẩm trong theme Storefront
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
add_action( 'init', 'wpcb_remove_default_sorting_storefront' ); | |
function wpcb_remove_default_sorting_storefront() { | |
remove_action( 'woocommerce_after_shop_loop', 'woocommerce_catalog_ordering', 10 ); | |
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 10 ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment