Pass order-again cart contents to 'woocommerce_ordered_again' action

This commit is contained in:
Manos Psychogyiopoulos 2018-11-16 15:23:08 +02:00
parent 8f145c70d7
commit c44809422b
1 changed files with 1 additions and 1 deletions

View File

@ -341,7 +341,7 @@ final class WC_Cart_Session {
);
}
do_action( 'woocommerce_ordered_again', $order->get_id() );
do_action( 'woocommerce_ordered_again', $order->get_id(), $cart );
$num_items_in_cart = count( $cart );
$num_items_in_original_order = count( $order_items );