Pass order-again cart contents to 'woocommerce_ordered_again' action
This commit is contained in:
parent
8f145c70d7
commit
c44809422b
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue