How To Change Place Order Button Text In WooCommerce?

How To Change Place Order Button Text in WooCommerce?

In this article, we have learned how to replace the place order button text on woocommerce checkout page

This is a very simple method to change the button text using the woocommerce_order_button_text  &  woocommerce_order_button_html hook filters and return the custom own text. The following code is added to your theme’s functions.php file.

Method: 1

add_filter( 'woocommerce_order_button_text', 'tch_custom_place_order_button_text' );
 
function tch_custom_place_order_button_text( $button_text ) {
   // your custom text here
   return 'Make New Order'; 
}

Method: 2

add_filter( 'woocommerce_order_button_html', 'tch_custom_place_order_button_html' );

function tch_custom_place_order_button_html( $button_html ) {
  $button_html = str_replace( 'Place order', 'Make New Order', $button_html );
  return $button_html;
}

Output:

 

Submit a Comment

Your email address will not be published. Required fields are marked *

Subscribe

Select Categories