switch ordered_again hook to ref_array
This commit is contained in:
parent
a7463c5535
commit
1e51bf3e69
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue