switch ordered_again hook to ref_array

This commit is contained in:
Kathy Daring 2019-01-11 12:14:29 -05:00
parent a7463c5535
commit 1e51bf3e69
1 changed files with 1 additions and 1 deletions

View File

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