diff --git a/includes/wc-order-item-functions.php b/includes/wc-order-item-functions.php index 9989d8f90e7..7e5397ca84f 100644 --- a/includes/wc-order-item-functions.php +++ b/includes/wc-order-item-functions.php @@ -19,7 +19,7 @@ if ( ! defined( 'ABSPATH' ) ) { * @param array $item_array * @return int|bool Item ID or false */ -function wc_add_order_item( $order_id, $item ) { +function wc_add_order_item( $order_id, $item_array ) { if ( ! $order_id = absint( $order_id ) ) { return false; }