WordPress action hook
woocommerce_checkout_create_order
Defined by WooCommerce and fired by 19 plugins in total, running on 7M+ sites between them.
“Action hook to adjust order before save.”
How to use woocommerce_checkout_create_order
It's an action: your callback runs at that point and receives 2 arguments. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'woocommerce_checkout_create_order', function( $order, $data ) {
// Your code runs here.
}, 10, 2 );Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
19 plugins that fire woocommerce_checkout_create_order
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooCommerce7+ million installs
do_action( 'woocommerce_checkout_create_order', $order, $data )includes/class-wc-checkout.php:497 -
Pay with Vipps and MobilePay for WooCommerce5,000+ installs
do_action( 'woocommerce_checkout_create_order', $order, array() )payment/WC_Gateway_Vipps.class.php:3984 -
Deposits & Partial Payments for WooCommerce5,000+ installs
do_action( 'woocommerce_checkout_create_order', $order, $data )includes/class-awcdp-front-end.php:1784 -
워드프레스 결제 심플페이1,000+ installs
do_action( 'woocommerce_checkout_create_order', $order, $data )includes/class-pafw-simple-pay.php:398 -
우커머스 네이버페이200+ installs
do_action( 'woocommerce_checkout_create_order', $order, array() )includes/class-mnp-order.php:942 -
AmwalPay for WooCommerce200+ installs
do_action( 'woocommerce_checkout_create_order', $order, $hook_data )includes/helper/applepay.php:652 -
Greenpay Payment Gateway100+ installs
do_action( 'woocommerce_checkout_create_order', $order, $data )includes/class-gateway-greenpay.php:946 -
Credova Financial100+ installs
do_action( 'woocommerce_checkout_create_order', $order, $posted_data )includes/class-credova-webhook-handler.php:866 -
Simpler Checkout40+ installs
do_action( 'woocommerce_checkout_create_order', $order, [] )includes/Services/OrderService.php:139 -
Briqpay for WooCommerce20+ installs
do_action( 'woocommerce_checkout_create_order', $order, $data )includes/class-checkout-handler.php:3111 -
DEPART20+ installs
do_action( 'woocommerce_checkout_create_order', $order, $data )inc/deposit-front-end.php:1113 -
GreenPay Payment Service10+ installs
do_action( 'woocommerce_checkout_create_order', $order, $data )includes/class-gateway-greenpay.php:1410 -
Long Term Interest-Free by HummGroup, New Zealand for WooCommerce10+ installs
do_action( 'woocommerce_checkout_create_order', $order, $data )includes/flexicardsltfo_gateway.php:849 -
Official Viapay Checkout GatewayFewer than 10 installs
do_action( 'woocommerce_checkout_create_order', $order, $data )includes/class-wc-viapay-order-statuses.php:231 -
TogetherPay for WooCommerceFewer than 10 installs
do_action( 'woocommerce_checkout_create_order', $order, $data )class/WC_Gateway_SplitOff.php:2741 -
PaymentIQ CheckoutFewer than 10 installs
do_action( 'woocommerce_checkout_create_order', $order, array() )inc/piq-co-utils.php:45 -
AppYourShopFewer than 10 installs
do_action( 'woocommerce_checkout_create_order', $order, $data )hooks/OrdersHooks.php:55 -
ReplyNext AIFewer than 10 installs
do_action( 'woocommerce_checkout_create_order', $order, $data )includes/class-replynextai-checkout-order.php:62 -
DevNajmus OneClick Order PopupFewer than 10 installs
do_action( 'woocommerce_checkout_create_order', $order, $order_data )includes/class-dopw-ajax.php:455
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.