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:
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.
-
WooCommerce7+ million installs
apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'woocommerce' ) )includes/wc-template-functions.php:2955 -
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 -
WooCommerce PayPal Payments800,000+ installs
apply_filters( 'woocommerce_order_button_text', __('Place order', 'woocommerce') )modules/ppcp-axo/src/Assets/AxoManager.php:133 -
ShopLentor80,000+ installs
apply_filters( 'woocommerce_order_button_text', $labels['place_order'] )includes/modules/shopify-like-checkout/includes/templates/form-checkout.php:334 -
Payment Plugins for PayPal WooCommerce80,000+ installs
apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'pymntpl-paypal-woocommerce' ) )src/Payments/Gateways/PayPalGateway.php:747 -
WooCommerce Square80,000+ installs
apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'woocommerce-square' ) )includes/Gateway/Gift_Card.php:612 -
Germanized for WooCommerce70,000+ installs
apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'woocommerce' ) )includes/wc-gzd-template-functions.php:1022 -
FunnelKit30,000+ installs
apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'woocommerce' ) )modules/checkouts/includes/class-wfacp-template.php:2826 -
Fluid Checkout for WooCommerce20,000+ installs
apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'woocommerce' ) )inc/checkout-steps.php:8752 -
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 -
YITH WooCommerce Subscription6,000+ installs
apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'yith-woocommerce-subscription' ) )includes/class-yith-wc-subscription-frontend.php:72 -
WPFunnels5,000+ installs
apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'woocommerce' ) )woocommerce/templates/checkout/payment.php:27 -
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 -
Stancer for WooCommerce400+ installs
apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'woocommerce' ) )includes/class-stancer-gateway.php:796 -
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 -
Payment Cash Pickup200+ installs
apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'woocommerce' ) )classes/class.wc-cp.php:42 -
Postcode Based Order Restriction for WooCommerce100+ installs
apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'woocommerce' ) )woocommerce-postcode-order-restriction.php:292 -
Shipbubble100+ installs
apply_filters( 'woocommerce_order_button_text', __('Place order', 'woocommerce') )shipbubble.php:311 -
Shopready100+ installs
apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'shopready-elementor-addon' ) )src/extension/elewidgets/deps/checkout/Order_Review.php:153 -
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 -
Themofy Addons for Elementor20+ installs
apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'woocommerce' ) )modules/woocommerce/includes/class-checkout-customizer.php:699 -
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 -
TrafficFlow OnePageCheckout for WooCommerce10+ installs
apply_filters( 'woocommerce_order_button_text', OPCW_Settings::pay_button_label() )includes/class-opcw-checkout.php:1392 -
ePim API importer10+ installs
apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'woocommerce' ) )includes/autoinc-candc-shipping-method.php:310 -
RocketFuel Payment Gateway for WooCommerce10+ installs
apply_filters( 'woocommerce_order_button_text', __( 'Places order', 'woocommerce' ) )Controllers/Woocommerce_Controller.php:56 -
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 -
Flux Payments Gateway for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_order_button_text', __('Pay With Flux', 'flux-payments-gateway') )fluxpayments-gateway.php:1422 -
LoycottFewer than 10 installs
apply_filters( 'woocommerce_order_button_text', __('Place order', 'loycott-loyalty') )booms.php:574 -
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 -
Cresta Checkout for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_order_button_text', $settings['label'] )inc/blocks/blocks-checkout.php:537 -
Web22 CheckoutFewer than 10 installs
apply_filters( 'woocommerce_order_button_text', __( 'Hoàn tất đặt hàng', 'web22-checkout' ) )web22-checkout.php:964 -
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 -
YayCheckoutFewer than 10 installs
apply_filters( 'woocommerce_order_button_text', $yaycheckout_default_label )assets/dist/blocks/place-order/render.php:23 -
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.