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:
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.
-
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
سرویس خرید پستی ماها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 -
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 -
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 -
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 -
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 -
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 -
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 -
YayCheckoutFewer than 10 installs
apply_filters( 'woocommerce_order_button_html', $yaycheckout_button )assets/dist/blocks/place-order/render.php:51 -
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 -
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 -
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 -
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.