diff --git a/includes/class-wc-checkout.php b/includes/class-wc-checkout.php index 45622ad89e1..399f0674a76 100644 --- a/includes/class-wc-checkout.php +++ b/includes/class-wc-checkout.php @@ -929,7 +929,7 @@ class WC_Checkout { throw new Exception( $order->get_error_message() ); } - do_action( 'woocommerce_checkout_order_processed', $order, $posted_data ); + do_action( 'woocommerce_checkout_order_processed', $order->get_id(), $posted_data, $order ); if ( WC()->cart->needs_payment() ) { $this->process_order_payment( $order, $posted_data['payment_method'] );