Skip to content

Instantly share code, notes, and snippets.

@Kaiderella

Kaiderella/functions.php Secret

Created Apr 18, 2020
Embed
What would you like to do?
Loại bỏ tính năng sắp xếp sản phẩm trong theme Storefront
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