Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrick1229/0d0eaf2ffe1450aa0afe176768518796 to your computer and use it in GitHub Desktop.
Save jrick1229/0d0eaf2ffe1450aa0afe176768518796 to your computer and use it in GitHub Desktop.
Override the 'Add to Order' button text on WooCommerce One Page Checkout pages: https://woocommerce.com/products/woocommerce-one-page-checkout/
<?php
add_filter('woocommerce_product_single_add_to_cart_text', 'override_modify_single_add_to_cart_text', 99);
function override_modify_single_add_to_cart_text( $product ) {
return 'OVERRIDE BUTTON TEXT';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment