Change “Add to Cart” button label in WooCommerce Cart
Use Case Scenario:
A WooCommerce online store owner wants to change the button label from “Add to Cart” to “Buy Me” without using a plugin..
The WooCommerce “Add to Cart” button label cannot be updated by default. To change the label, just copy this short snippet to functions.php in your current theme folder.
Copy the code below and paste it in functions.php
add_filter( 'woocommerce_product_single_add_to_cart_text', 'whc_add_button', 9999 );
add_filter( 'woocommerce_product_add_to_cart_text', 'whc_add_button', 9999 );
function whc_add_button() {
return 'Buy Me!';
}
My brother suggested I might like this blog. He was entirely
right. This post actually made my day. You cann’t imagine simply how
much time I had spent for this information! Thanks!
my web-site – nordvpn Coupons Inspiresensation
nordvpn promo code 350fairfax
Hey I know this is off topic but I was wondering if
you knew of any widgets I could add to my blog that automatically tweet my
newest twitter updates. I’ve been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this.
Please let me know if you run into anything.
I truly enjoy reading your blog and I look
forward to your new updates.