Last active
May 11, 2019 23:59
-
-
Save sakilimran/60edf1d5762147ad770b2cb284e9c2ba to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?php | |
// change "Add to Cart" text in archive product | |
add_filter( 'woocommerce_product_add_to_cart_text', 'woo_archive_custom_cart_button_text' ); // 2.1 + | |
function woo_archive_custom_cart_button_text() { | |
return __( 'Buy Now', 'woocommerce' ); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment