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!';
}