woocommerce_checkout_create_order, $order, $data
woocommerce_checkout_create_order, $order, $data
Appears in: woocommerce.11.0.0
Hook Type: action
Displaying hooks found in version: woocommerce.11.0.0do_action('woocommerce_checkout_create_order, $order, $data') is found 1 times:
- /includes/class-wc-checkout.php line 476
* Action hook to adjust order before save. * * @since 3.0.0 */ do_action( 'woocommerce_checkout_create_order', $order, $data ); // Save the order. $order_id = $order->save(); // Defense-in-depth: if the cart still has items but the persisted order has none, // the save silently dropped every line item (e.g. a $wpdb->insert() returning false