WordPress action hook

woocommerce_pay_order_after_submit

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

How to use woocommerce_pay_order_after_submit

It's an action: your callback runs at that point. Nothing needs to be returned. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_action( 'woocommerce_pay_order_after_submit', function() {
	// Your code runs here.
}, 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_after_submit

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. WooCommerce icon WooCommerce7+ million installs do_action( 'woocommerce_pay_order_after_submit' ) templates/checkout/form-pay.php:104
  2. CartFlows icon CartFlows200,000+ installs do_action( 'woocommerce_pay_order_after_submit' ) woocommerce/template/checkout/form-pay.php:105
  3. FunnelKit icon FunnelKit30,000+ installs do_action( 'woocommerce_pay_order_after_submit' ) modules/checkouts/public/template-common/form-order-pay.php:220
  4. Payment Plugins Braintree For WooCommerce icon Payment Plugins Braintree For WooCommerce2,000+ installs do_action( 'woocommerce_pay_order_after_submit' ) templates/checkout/subscription-form-pay.php:103
  5. Deposits & Partial Payments for WooCommerce icon Deposits & Partial Payments for WooCommerce1,000+ installs do_action( 'woocommerce_pay_order_after_submit' ) templates/checkout/form-pay.php:97
  6. KiriminAja Official icon KiriminAja Official200+ installs do_action( 'woocommerce_pay_order_after_submit' ) templates/woocommerce/checkout/form-pay.php:109
  7. MerchantX Gateway for WooCommerce icon MerchantX Gateway for WooCommerce10+ installs do_action( 'woocommerce_pay_order_after_submit', 'order_pay' ) class/order-pay.php:52
  8. NETbilling for WooCommerce icon NETbilling for WooCommerce10+ installs do_action( 'woocommerce_pay_order_after_submit' ) src/Gateways/Credit_Card/Payment_Form.php:118
  9. Bright Deposits for WooCommerce icon Bright Deposits for WooCommerceFewer than 10 installs do_action( 'woocommerce_pay_order_after_submit' ) templates/checkout/form-pay.php:98
  10. Vanquish Deposits icon Vanquish DepositsFewer than 10 installs do_action( 'woocommerce_pay_order_after_submit' ) templates/checkout/form-pay-payment.php:126
  11. BoltUtil Payments for WooCommerce icon BoltUtil Payments for WooCommerceFewer than 10 installs do_action( 'woocommerce_pay_order_after_submit' ) includes/templates/form-pay.php:19
  12. ithan devvn checkout for woocommerce icon ithan devvn checkout for woocommerceFewer than 10 installs do_action( 'woocommerce_pay_order_after_submit' ) templates/checkout/form-pay.php:142
  13. Edit Shipping Address for WooCommerce icon Edit Shipping Address for WooCommerceFewer than 10 installs do_action( 'woocommerce_pay_order_after_submit' ) includes/edit-shipping-address-template.php:320

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.