WordPress filter hook

woocommerce_order_button_text

Defined by WooCommerce and fired by 34 plugins in total, running on 9.2M+ sites between them.

“The WC filter returning the WC order button text. phpcs:disable WordPress.WP.I18n.TextDomainMismatch”

How to use woocommerce_order_button_text

It's a filter: your callback receives the value, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'woocommerce_order_button_text', function( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

Argument names come from Essential Addons for Elementor's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

34 plugins that fire woocommerce_order_button_text

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. WooCommerce icon WooCommerce7+ million installs apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'woocommerce' ) ) includes/wc-template-functions.php:2955
  2. Essential Addons for Elementor icon Essential Addons for Elementor1+ million installs apply_filters( 'woocommerce_order_button_text', CheckoutHelperCLass::eael_wp_kses($settings['ea_woo_checkout_place_order_text']) ) includes/Template/Woocommerce/Checkout/Woo_Checkout_Helper.php:765
  3. WooCommerce PayPal Payments icon WooCommerce PayPal Payments800,000+ installs apply_filters( 'woocommerce_order_button_text', __('Place order', 'woocommerce') ) modules/ppcp-axo/src/Assets/AxoManager.php:133
  4. ShopLentor icon ShopLentor80,000+ installs apply_filters( 'woocommerce_order_button_text', $labels['place_order'] ) includes/modules/shopify-like-checkout/includes/templates/form-checkout.php:334
  5. Payment Plugins for PayPal WooCommerce icon Payment Plugins for PayPal WooCommerce80,000+ installs apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'pymntpl-paypal-woocommerce' ) ) src/Payments/Gateways/PayPalGateway.php:747
  6. WooCommerce Square icon WooCommerce Square80,000+ installs apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'woocommerce-square' ) ) includes/Gateway/Gift_Card.php:612
  7. Germanized for WooCommerce icon Germanized for WooCommerce70,000+ installs apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'woocommerce' ) ) includes/wc-gzd-template-functions.php:1022
  8. FunnelKit icon FunnelKit30,000+ installs apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'woocommerce' ) ) modules/checkouts/includes/class-wfacp-template.php:2826
  9. Fluid Checkout for WooCommerce icon Fluid Checkout for WooCommerce20,000+ installs apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'woocommerce' ) ) inc/checkout-steps.php:8752
  10. King Addons for Elementor icon King Addons for Elementor10,000+ installs apply_filters( 'woocommerce_order_button_text', __('Place order', 'woocommerce') ) includes/widgets/Woo_Checkout_Payment/Woo_Checkout_Payment.php:365
  11. YITH WooCommerce Subscription icon YITH WooCommerce Subscription6,000+ installs apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'yith-woocommerce-subscription' ) ) includes/class-yith-wc-subscription-frontend.php:72
  12. WPFunnels icon WPFunnels5,000+ installs apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'woocommerce' ) ) woocommerce/templates/checkout/payment.php:27
  13. Responsive Addons for Elementor icon Responsive Addons for Elementor3,000+ installs apply_filters( 'woocommerce_order_button_text', CheckoutHelperCLass::rael_wp_kses( $settings['rael_woo_checkout_place_order_text'] ) ) traits/responsive-addons-for-elementor-woo-checkout-helper.php:962
  14. Stancer for WooCommerce icon Stancer for WooCommerce400+ installs apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'woocommerce' ) ) includes/class-stancer-gateway.php:796
  15. Sticky Product Add to Cart and Checkout Bar for WooCommerce icon Sticky Product Add to Cart and Checkout Bar for WooCommerce200+ installs apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'woocommerce' ) ) templates/wc-sticky-product-bar/checkout-bar.php:38
  16. Payment Cash Pickup icon Payment Cash Pickup200+ installs apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'woocommerce' ) ) classes/class.wc-cp.php:42
  17. Postcode Based Order Restriction for WooCommerce icon Postcode Based Order Restriction for WooCommerce100+ installs apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'woocommerce' ) ) woocommerce-postcode-order-restriction.php:292
  18. Shipbubble icon Shipbubble100+ installs apply_filters( 'woocommerce_order_button_text', __('Place order', 'woocommerce') ) shipbubble.php:311
  19. Shopready icon Shopready100+ installs apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'shopready-elementor-addon' ) ) src/extension/elewidgets/deps/checkout/Order_Review.php:153
  20. WPC Request a Quote for WooCommerce icon WPC Request a Quote for WooCommerce100+ installs apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'wpc-request-a-quote' ) ) includes/class-wpcrq-frontend.php:115
  21. Themofy Addons for Elementor icon Themofy Addons for Elementor20+ installs apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'woocommerce' ) ) modules/woocommerce/includes/class-checkout-customizer.php:699
  22. Max Elements for Elementor icon Max Elements for Elementor10+ installs apply_filters( 'woocommerce_order_button_text', self::max_elements_wp_kses($settings['woo_checkout_place_order_text']) ) elementor/helpers/woo_checkout.php:757
  23. TrafficFlow OnePageCheckout for WooCommerce icon TrafficFlow OnePageCheckout for WooCommerce10+ installs apply_filters( 'woocommerce_order_button_text', OPCW_Settings::pay_button_label() ) includes/class-opcw-checkout.php:1392
  24. ePim API importer icon ePim API importer10+ installs apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'woocommerce' ) ) includes/autoinc-candc-shipping-method.php:310
  25. RocketFuel Payment Gateway for WooCommerce icon RocketFuel Payment Gateway for WooCommerce10+ installs apply_filters( 'woocommerce_order_button_text', __( 'Places order', 'woocommerce' ) ) Controllers/Woocommerce_Controller.php:56
  26. SKYRO Checkout for WooCommerce icon SKYRO Checkout for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'skyro-checkout-for-woocommerce' ) ) src/FrontEnd/TemplateFiles/Credence/Credence.php:199
  27. Flux Payments Gateway for WooCommerce icon Flux Payments Gateway for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_order_button_text', __('Pay With Flux', 'flux-payments-gateway') ) fluxpayments-gateway.php:1422
  28. Loycott icon LoycottFewer than 10 installs apply_filters( 'woocommerce_order_button_text', __('Place order', 'loycott-loyalty') ) booms.php:574
  29. Minimum/Maximum Order Amount for WooCommerce icon Minimum/Maximum Order Amount for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_order_button_text', __('Place order', 'woocommerce') ) public/class-min-max-order-amount-for-wc-public.php:236
  30. Cresta Checkout for WooCommerce icon Cresta Checkout for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_order_button_text', $settings['label'] ) inc/blocks/blocks-checkout.php:537
  31. Web22 Checkout icon Web22 CheckoutFewer than 10 installs apply_filters( 'woocommerce_order_button_text', __( 'Hoàn tất đặt hàng', 'web22-checkout' ) ) web22-checkout.php:964
  32. MCOD Minimalist Checkout for WooCommerce icon MCOD Minimalist Checkout for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_order_button_text', __( 'Pay now', 'mcod-minimalist-checkout-for-woocommerce' ) ) templates/woocommerce/checkout/payment.php:53
  33. YayCheckout icon YayCheckoutFewer than 10 installs apply_filters( 'woocommerce_order_button_text', $yaycheckout_default_label ) assets/dist/blocks/place-order/render.php:23
  34. Ajax instant buy checkout for WooCommerce icon Ajax instant buy checkout for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'woocommerce' ) ) woo-ajax-instant-checkout.php:251

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.