woocommerce_checkout_order_processed bw compat

This commit is contained in:
Mike Jolley 2017-02-14 18:57:29 +00:00
parent 6add2f9a64
commit 7b0b1529bf
1 changed files with 1 additions and 1 deletions

View File

@ -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'] );