Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bulentsakarya/8198596bb5a3747f737b8c47ba590b52 to your computer and use it in GitHub Desktop.
Save bulentsakarya/8198596bb5a3747f737b8c47ba590b52 to your computer and use it in GitHub Desktop.
Woocommerce "Sepete Ekle" buton yazısını değiştirme
// 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 __( 'Hemen Al', 'woocommerce' );
}
// 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 __( 'Hemen Al', 'woocommerce' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment