Last active
January 9, 2017 07:01
-
-
Save sakilimran/e97159b5a0ae13d6f67ec6930fb308d6 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 single product page | |
add_filter( 'woocommerce_product_single_add_to_cart_text', 'woo_custom_cart_button_text' ); | |
function woo_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