Skip to content

Instantly share code, notes, and snippets.

@bahiirwa
Created September 9, 2017 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bahiirwa/81c5ab2ddba9b8349bf95ff2f7b21f07 to your computer and use it in GitHub Desktop.
Save bahiirwa/81c5ab2ddba9b8349bf95ff2f7b21f07 to your computer and use it in GitHub Desktop.
Woocommerce change add to cart text
<?php
add_filter('woocommerce_product_add_to_cart_text', 'wh_archive_custom_cart_button_text'); // 2.1 +
function wh_archive_custom_cart_button_text()
{
return __('Place your order', 'nxgen_ug');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment