woocommerce_checkout_create_order action-hookWC 3.0.0

Action hook to adjust order before save.

Usage

add_action( 'woocommerce_checkout_create_order', 'wp_kama_woocommerce_checkout_create_order_action', 10, 2 );

/**
 * Function for `woocommerce_checkout_create_order` action-hook.
 * 
 * @param  $order 
 * @param  $data  
 *
 * @return void
 */
function wp_kama_woocommerce_checkout_create_order_action( $order, $data ){

	// action...
}
$order
-
$data
-

Changelog

Since 3.0.0 Introduced.

Where the hook is called

WC_Checkout::create_order()
woocommerce_checkout_create_order
woocommerce/includes/class-wc-checkout.php 449
do_action( 'woocommerce_checkout_create_order', $order, $data );

Where the hook is used in WooCommerce

Usage not found.