Created
February 20, 2021 12:04
-
-
Save mono96/89f811a108d8ea30db00f8fc08766d38 to your computer and use it in GitHub Desktop.
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
// To change add to cart text on single product page | |
add_filter( 'woocommerce_product_single_add_to_cart_text', 'woocommerce_custom_single_add_to_cart_text' ); | |
function woocommerce_custom_single_add_to_cart_text() { | |
return __( 'カートに入れる', 'woocommerce' ); | |
} | |
// To change add to cart text on product archives(Collection) page | |
add_filter( 'woocommerce_product_add_to_cart_text', 'woocommerce_custom_product_add_to_cart_text' ); | |
function woocommerce_custom_product_add_to_cart_text() { | |
return __( 'カートに入れる', 'woocommerce' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment