mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-30 11:42:22 +08:00
5 lines
312 B
Text
5 lines
312 B
Text
add_action( 'woocommerce_init', 'remove_all_wc_add_to_cart' );
|
|
function remove_all_wc_add_to_cart() {
|
|
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
|
|
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
|
|
}
|