WooCommerce PHP Beginner Requires WooCommerce

Change the “Place Order” Button Text

Replace "Place order" on the classic checkout with your own wording, such as "Pay now" or "Complete purchase".

Tested on WordPress 7.1 PHP 8.3 Updated
functions.php 3 lines
add_filter( 'woocommerce_order_button_text', function (): string {
	return 'Pay now';
} );

Where to add this

Recommended A code snippets plugin Survives theme changes and is easy to switch off.
Child theme At the end of your child theme's functions.php file.
Must-use plugin As a .php file in wp-content/mu-plugins, starting with <?php.

Always add PHP to a staging site first, or have FTP or file manager access ready, so you can undo it if something goes wrong.

The button at the end of checkout is the last thing a customer reads before paying. “Place order” is clear but generic. This snippet changes it to wording that matches your store.

How it works

WooCommerce passes the button label through the woocommerce_order_button_text filter when it renders the classic checkout form. Returning a new string replaces it.

Some payment gateways replace the button with their own, for example PayPal Smart Buttons. Those use the gateway’s own label.

Things to watch

  • The block-based Checkout ignores this filter. Select the Checkout block in the editor, click the Place Order button and change its text in the block settings instead.
  • Keep it short and clear that money will be taken. “Pay now” or “Complete purchase” works better than “Submit”.

How to test it

Add an item to the cart and open checkout. The button at the bottom should show your new text.

This website uses cookies to enhance your browsing experience and ensure the site functions properly. By continuing to use this site, you acknowledge and accept our use of cookies.

Accept All Accept Required Only