WordPress filter hook

woocommerce_pay_order_button_text

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

“Allows the text of the submit button on the Pay for Order page to be changed.”

How to use woocommerce_pay_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_pay_order_button_text', function( $_ ) {
	// Change $_ here.
	return $_;
}, 10, 1 );

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

13 plugins that fire woocommerce_pay_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_pay_order_button_text', __( 'Pay for order', 'woocommerce' ) ) includes/shortcodes/class-wc-shortcode-checkout.php:230
  2. Essential Addons for Elementor icon Essential Addons for Elementor1+ million installs apply_filters( 'woocommerce_pay_order_button_text', __( 'Pay for order', 'essential-addons-for-elementor-lite' ) ) includes/Template/Woocommerce/Checkout/Woo_Checkout_Helper.php:222
  3. Payment Gateway Based Fees and Discounts for WooCommerce icon Payment Gateway Based Fees and Discounts for WooCommerce30,000+ installs apply_filters( 'woocommerce_pay_order_button_text', __( 'Pay for order', 'woocommerce' ) ) includes/admin/class-order-fees.php:862
  4. FunnelKit icon FunnelKit30,000+ installs apply_filters( 'woocommerce_pay_order_button_text', __( 'Pay for order', 'woocommerce' ) ) modules/checkouts/public/template-common/form-order-pay.php:156
  5. WCPOS icon WCPOS5,000+ installs apply_filters( 'woocommerce_pay_order_button_text', __( 'Pay for order', 'woocommerce-pos' ) ) includes/Templates/Payment.php:228
  6. PiWeb Disable payment method / Partial payment for WooCommerce icon PiWeb Disable payment method / Partial payment for WooCommerce4,000+ installs apply_filters( 'woocommerce_pay_order_button_text', __( 'Pay for order', 'disable-payment-method-for-woocommerce' ) ) public/class-apply-order-fees.php:158
  7. Responsive Addons for Elementor icon Responsive Addons for Elementor3,000+ installs apply_filters( 'woocommerce_pay_order_button_text', __( 'Pay for order', 'responsive-addons-for-elementor' ) ) traits/responsive-addons-for-elementor-woo-checkout-helper.php:250
  8. Oliver POS icon Oliver POS600+ installs apply_filters( 'woocommerce_pay_order_button_text', __( 'Pay Now', 'oliver-pos' ) ) includes/payment/class-pos-payment-page.php:594
  9. Max Elements for Elementor icon Max Elements for Elementor10+ installs apply_filters( 'woocommerce_pay_order_button_text', __('Pay for order', 'max-elements') ) elementor/helpers/woo_checkout.php:217
  10. NETbilling for WooCommerce icon NETbilling for WooCommerce10+ installs apply_filters( 'woocommerce_pay_order_button_text', __( 'Pay for order', 'woocommerce' ) ) src/Gateways/Credit_Card/Payment_Form.php:109
  11. Hyphon Events Manager icon Hyphon Events ManagerFewer than 10 installs apply_filters( 'woocommerce_pay_order_button_text', __('Pay for order','hyphon-events-manager') ) includes/ticketing.php:308
  12. Dresium icon DresiumFewer than 10 installs apply_filters( 'woocommerce_pay_order_button_text', __( 'Pay for order', 'woocommerce' ) ) includes/class-dresium-wc-paywall.php:271
  13. Single Page Shopping icon Single Page ShoppingFewer than 10 installs apply_filters( 'woocommerce_pay_order_button_text', __( 'Pay for order', 'woocommerce' ) ) includes/class-awcs-my-account.php:176

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.