OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

How to change WooCommerce "Pay For Order" button text

  • Thread starter Thread starter Jomarie Thomson
  • Start date Start date
J

Jomarie Thomson

Guest
I've added a code snippet to the child theme functions.php page to change the "Pay For Order" button on the checkout page to read "Pay Now". The text hasn't changed. What am I missing?

Code:
add_filter( 'woocommerce_order_button_text', 'wc_custom_order_button_text' ); 

function wc_custom_order_button_text() {
    return __( 'Pay Now', 'woocommerce' ); 
}
<p>I've added a code snippet to the child theme functions.php page to change the "Pay For Order" button on the checkout page to read "Pay Now". The text hasn't changed. What am I missing?</p>
<pre><code>add_filter( 'woocommerce_order_button_text', 'wc_custom_order_button_text' );

function wc_custom_order_button_text() {
return __( 'Pay Now', 'woocommerce' );
}
</code></pre>
Continue reading...
 

Latest posts

Top