WordPress filter hook

woocommerce_order_button_html

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

How to use woocommerce_order_button_html

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_html', function( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

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

32 plugins that fire woocommerce_order_button_html

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_html', '<button type="submit" class="button alt' . esc_attr( wc_wp_theme_get_element_class_name( 'button' ) ? ' ' . wc_wp_theme_get_element_class_name( 'button' ) : '' ) . '" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '">' . esc_html( $order_button_text ) . '</button>' ) templates/checkout/payment.php:53
  2. CartFlows icon CartFlows200,000+ installs apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="button alt" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '">' . esc_html( $order_button_text ) . '</button>' ) woocommerce/template/checkout/payment.php:54
  3. ShopLentor icon ShopLentor80,000+ installs apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="woolentor-checkout__button" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '">' . esc_html( $order_button_text ) . '</button>' ) includes/modules/shopify-like-checkout/includes/templates/form-checkout.php:336
  4. WooCommerce Square icon WooCommerce Square80,000+ installs apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="button alt' . esc_attr( wc_wp_theme_get_element_class_name( 'button' ) ? ' ' . wc_wp_theme_get_element_class_name( 'button' ) : '' ) . '" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '">' . esc_html( $order_button_text ) . '</button>' ) includes/Gateway/Templates/payment.php:62
  5. Germanized for WooCommerce icon Germanized for WooCommerce70,000+ installs apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="button alt' . esc_attr( wc_gzd_wp_theme_get_element_class_name( 'button' ) ? ' ' . wc_gzd_wp_theme_get_element_class_name( 'button' ) : '' ) . '" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '">' . esc_html( $order_button_text ) . '</button>' ) templates/checkout/order-submit.php:45
  6. FunnelKit icon FunnelKit30,000+ installs apply_filters( 'woocommerce_order_button_html', '<input type="submit" class="button alt" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '" />' ) modules/checkouts/public/template-common/checkout/payment-2.5.0.php:69
  7. Fluid Checkout for WooCommerce icon Fluid Checkout for WooCommerce20,000+ installs apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="button alt' . esc_attr( wc_gzd_wp_theme_get_element_class_name( 'button' ) ? ' ' . wc_gzd_wp_theme_get_element_class_name( 'button' ) : '' ) . '" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '">' . esc_html( $order_button_text ) . '</button>' ) templates/compat/plugins/woocommerce-germanized/checkout/order-submit.php:60
  8. SellKit icon SellKit7,000+ installs apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="button alt sellkit-checkout-widget-primary-button" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '">' . esc_html( $order_button_text ) . '</button>' ) includes/block-editor/blocks/checkout/inner-blocks/payment-continue/class.php:54
  9. Donation Platform for WooCommerce: Fundraising & Donation Management icon Donation Platform for WooCommerce: Fundraising & Donation Management6,000+ installs apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="button alt' . esc_attr(wc_wp_theme_get_element_class_name('button') ? ' ' . wc_wp_theme_get_element_class_name('button') : '') . '" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr($order_button_text) . '" data-value="' . esc_attr($order_button_text) . '">' . esc_html($order_button_text) . '</button>' ) includes/wc-templates/checkout/payment.php:57
  10. WPFunnels icon WPFunnels5,000+ installs apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="button alt" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '">' . esc_html( $order_button_text ) . '</button>' ) woocommerce/templates/checkout/payment.php:78
  11. WowStore icon WowStore4,000+ installs apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="button alt" name="woocommerce_checkout_place_order" id="place_order" value="Place order" data-value="Place order">' . esc_html__( 'Place order', 'product-blocks' ) . '</button>' ) blocks/woo/checkout/payment_method/Template.php:41
  12. MStore API icon MStore API2,000+ installs apply_filters( 'woocommerce_order_button_html', '<input type="submit" class="button alt" name="woocommerce_checkout_place_order" id="place_order" value="" />' ) templates/mstore-api-template.php:474
  13. ShopPress icon ShopPress600+ installs apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="button alt" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '">' . esc_html( $order_button_text ) . '</button>' ) public/templates/checkout/multi-step-checkout-form.php:185
  14. StoreBuild icon StoreBuild400+ installs apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="button alt' . esc_attr(wc_wp_theme_get_element_class_name('button') ? ' ' . wc_wp_theme_get_element_class_name('button') : '') . '" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr($settings['_order_btn_text']) . '" data-value="' . esc_attr($settings['_order_btn_text']) . '">' . esc_html($settings['_order_btn_text']) . '</button>' ) public/widgets/elementor/checkout-payment.php:269
  15. Hide Address Fields for WooCommerce icon Hide Address Fields for WooCommerce300+ installs apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="button alt' . esc_attr( wc_wp_theme_get_element_class_name( 'button' ) ? ' ' . wc_wp_theme_get_element_class_name( 'button' ) : '' ) . '" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '">' . esc_html( $order_button_text ) . '</button>' ) woocommerce/checkout/payment.php:38
  16. KiriminAja Official icon KiriminAja Official200+ installs apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="button alt' . esc_attr( wc_wp_theme_get_element_class_name( 'button' ) ? ' ' . wc_wp_theme_get_element_class_name( 'button' ) : '' ) . '" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '">' . esc_html( $order_button_text ) . '</button>' ) templates/woocommerce/checkout/payment.php:39
  17. Shopready icon Shopready100+ installs apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="button alt woo-ready-chk-order-btn" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '">' . esc_html( $order_button_text ) . '</button>' ) src/extension/elewidgets/widgets/checkout/template-part/payment.php:42
  18. Amazon payment services icon Amazon payment services100+ installs apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="button alt" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '">' . esc_html( $order_button_text ) . '</button>' ) public/woo_templates/checkout/payment.php:63
  19. Checkout Custom Fields Builder for WooCommerce icon Checkout Custom Fields Builder for WooCommerce30+ installs apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="button alt' . esc_attr( wc_wp_theme_get_element_class_name( 'button' ) ? ' ' . wc_wp_theme_get_element_class_name( 'button' ) : '' ) . '" name="woocommerce_checkout_place_order" id="ccfbw_place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '">' . esc_html( $order_button_text ) . '</button>' ) templates/frontend/checkout/payment-actions.php:56
  20. One Page Checkout for WooCommerce icon One Page Checkout for WooCommerce30+ installs apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="button alt" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '">' . esc_html( $order_button_text ) . '</button>' ) public/templates/checkout/payment.php:62
  21. سرویس خرید پستی ماها icon سرویس خرید پستی ماها10+ installs apply_filters( 'woocommerce_order_button_html', '<input type="submit" class="button alt" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '" />' ) checkout/payment.php:40
  22. Custom & One-Page Checkout for Woo icon Custom & One-Page Checkout for Woo10+ installs apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="button alt" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '">' . esc_html( $order_button_text ) . '</button>' ) templates/woocommerce/checkout/payment.php:56
  23. WPC icon WPC10+ installs apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="button alt" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '">' . esc_html( $order_button_text ) . '</button>' ) app/inc/Addons/wpc-onepage-checkout/templates/checkout/place-order.php:19
  24. Checkout Popup icon Checkout PopupFewer than 10 installs apply_filters( 'woocommerce_order_button_html', '<input type="submit" class="button alt" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '" />' ) woocommerce/checkout/payment.php:56
  25. Cresta Checkout for WooCommerce icon Cresta Checkout for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="button alt cbc-pay-button" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $shown ) . '" data-value="' . esc_attr( $shown ) . '"' . $attrs . '>' . esc_html( $shown ) . '</button>' ) inc/blocks/blocks-checkout.php:564
  26. MCOD Minimalist Checkout for WooCommerce icon MCOD Minimalist Checkout for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="button alt mcrpd-pay-now-button" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '">' . esc_html( $order_button_text ) . '</button>' ) templates/woocommerce/checkout/payment.php:54
  27. SuperPlus icon SuperPlusFewer than 10 installs apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="button alt' . esc_attr(wc_wp_theme_get_element_class_name('button') ? ' ' . wc_wp_theme_get_element_class_name('button') : '') . '" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr($order_button_text) . '" data-value="' . esc_attr($order_button_text) . '">' . esc_html($order_button_text) . '</button>' ) includes/modules/checkout-steps/templates/woocommerce/checkout/payment.php:93
  28. YayCheckout icon YayCheckoutFewer than 10 installs apply_filters( 'woocommerce_order_button_html', $yaycheckout_button ) assets/dist/blocks/place-order/render.php:51
  29. SKYRO Checkout for WooCommerce icon SKYRO Checkout for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="button alt' . esc_attr( wc_wp_theme_get_element_class_name( 'button' ) ? ' ' . wc_wp_theme_get_element_class_name( 'button' ) : '' ) . '" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '">' . esc_html( $order_button_text ) . '</button>' ) src/FrontEnd/TemplateFiles/TemplateParts/payment.php:66
  30. Ajax instant buy checkout for WooCommerce icon Ajax instant buy checkout for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="button alt' . esc_attr( wc_wp_theme_get_element_class_name( 'button' ) ? ' ' . wc_wp_theme_get_element_class_name( 'button' ) : '' ) . '" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '">' . esc_html( $order_button_text ) . '</button>' ) template/payment.php:35
  31. WS Custom Checkout icon WS Custom CheckoutFewer than 10 installs apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="button alt" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '">' . esc_html( $order_button_text ) . '</button>' ) checkout/templates/for_replacement/payment.php:51
  32. Brankas Payment for WooCommerce icon Brankas Payment for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="button alt" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '">' . esc_html( $order_button_text ) . '</button>' ) woocommerce/checkout/payment.php:65

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.