diff --git a/includes/class-wc-cart-session.php b/includes/class-wc-cart-session.php index 71d58e2cecf..1f2ea0b5059 100644 --- a/includes/class-wc-cart-session.php +++ b/includes/class-wc-cart-session.php @@ -351,7 +351,7 @@ final class WC_Cart_Session { ); } - do_action( 'woocommerce_ordered_again', $order->get_id(), $order_items, $cart ); + do_action_ref_array( 'woocommerce_ordered_again', array( $order->get_id(), $order_items, &$cart ) ); $num_items_in_cart = count( $cart ); $num_items_in_original_order = count( $order_items );