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:
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.
-
WooCommerce7+ million installs
apply_filters( 'woocommerce_pay_order_button_text', __( 'Pay for order', 'woocommerce' ) )includes/shortcodes/class-wc-shortcode-checkout.php:230 -
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 -
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 -
FunnelKit30,000+ installs
apply_filters( 'woocommerce_pay_order_button_text', __( 'Pay for order', 'woocommerce' ) )modules/checkouts/public/template-common/form-order-pay.php:156 -
WCPOS5,000+ installs
apply_filters( 'woocommerce_pay_order_button_text', __( 'Pay for order', 'woocommerce-pos' ) )includes/Templates/Payment.php:228 -
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 -
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 -
Oliver POS600+ installs
apply_filters( 'woocommerce_pay_order_button_text', __( 'Pay Now', 'oliver-pos' ) )includes/payment/class-pos-payment-page.php:594 -
Max Elements for Elementor10+ installs
apply_filters( 'woocommerce_pay_order_button_text', __('Pay for order', 'max-elements') )elementor/helpers/woo_checkout.php:217 -
NETbilling for WooCommerce10+ installs
apply_filters( 'woocommerce_pay_order_button_text', __( 'Pay for order', 'woocommerce' ) )src/Gateways/Credit_Card/Payment_Form.php:109 -
Hyphon Events ManagerFewer than 10 installs
apply_filters( 'woocommerce_pay_order_button_text', __('Pay for order','hyphon-events-manager') )includes/ticketing.php:308 -
DresiumFewer than 10 installs
apply_filters( 'woocommerce_pay_order_button_text', __( 'Pay for order', 'woocommerce' ) )includes/class-dresium-wc-paywall.php:271 -
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.