nevercrox.com

WooCommerce Change “Place Order” Button Text

Pre-Requisites

There are no pre-requisites for this code snippet to work. Keep in mind this solution consists of two code snippets, one to display the content and one to style it.

How To Implement This Solution?

Add these two code snippets as separate entries in either your active child theme’s functions.php file or the Code Snippets plugin.

About The Snippet

There are times when changing the default “Place Order” button text on the WooCommerce Checkout form is necessary. While some payment gateways might override this text with their own, making changes is straightforward using a PHP if statement. For those with basic settings, this quick guide will show you how to customize the button text to whatever you need.

Code Snippet 1 (Paste This Code In functions.php or Code Snippets )
/**
* Snippet Name:     Change the WooCommerce Place Order checkout button text.
* Snippet Author:   Nevercrox Solutions
*/

add_filter( 'woocommerce_order_button_text', 'nevercrox_checkout_button_text' );

function nevercrox_checkout_button_text( $button_text ) {
   return 'Get The Goods!'; // new text is here
}


 

Just Added Blogs

Need A Specifc Blog ?

Request A Blog

Check Out More Related Snippets