Created
March 20, 2012 22:08
-
-
Save thegdshop/2141771 to your computer and use it in GitHub Desktop.
WooCommerce - Change add to cart button text
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
<?php | |
add_filter('single_add_to_cart_text', 'woo_custom_cart_button_text'); | |
function woo_custom_cart_button_text() { | |
return __('My Button Text', 'woocommerce'); | |
} | |
?> |
hey peternortefb..
same error is occur with my site and solved it.
you can go to ur cpanel and then open function.php through file manager then delete the code which u pasted..
problem solved
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just had a fatal error in here. i added theses lines in woocommerce-core-functions.php . Think im wrong cause it shuld be in functions.php... Suddenly my webstite is down and cannot access tu www.mysite.com/wp.admin. But still have access via ftp.
I reallny need help. any ideas of what to do?