@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | * |
135 | 135 | * @since 2.1 |
136 | 136 | * @param int $id the customer ID |
137 | - * @param array $fields |
|
137 | + * @param string $fields |
|
138 | 138 | * @return array |
139 | 139 | */ |
140 | 140 | public function get_customer( $id, $fields = null ) { |
@@ -714,7 +714,7 @@ discard block |
||
714 | 714 | * @param integer $id the customer ID |
715 | 715 | * @param string $type the request type, unused because this method overrides the parent class |
716 | 716 | * @param string $context the context of the request, either `read`, `edit` or `delete` |
717 | - * @return int|WP_Error valid user ID or WP_Error if any of the checks fails |
|
717 | + * @return integer valid user ID or WP_Error if any of the checks fails |
|
718 | 718 | */ |
719 | 719 | protected function validate_request( $id, $type, $context ) { |
720 | 720 |
@@ -1193,7 +1193,7 @@ |
||
1193 | 1193 | * Get the admin order notes for an order |
1194 | 1194 | * |
1195 | 1195 | * @since 2.1 |
1196 | - * @param string $order_id order ID |
|
1196 | + * @param integer $order_id order ID |
|
1197 | 1197 | * @param string|null $fields fields to include in response |
1198 | 1198 | * @return array |
1199 | 1199 | */ |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | * |
135 | 135 | * @since 2.1 |
136 | 136 | * @param int $id the customer ID |
137 | - * @param array $fields |
|
137 | + * @param string $fields |
|
138 | 138 | * @return array |
139 | 139 | */ |
140 | 140 | public function get_customer( $id, $fields = null ) { |
@@ -703,7 +703,7 @@ discard block |
||
703 | 703 | * @param integer $id the customer ID |
704 | 704 | * @param string $type the request type, unused because this method overrides the parent class |
705 | 705 | * @param string $context the context of the request, either `read`, `edit` or `delete` |
706 | - * @return int|WP_Error valid user ID or WP_Error if any of the checks fails |
|
706 | + * @return integer valid user ID or WP_Error if any of the checks fails |
|
707 | 707 | */ |
708 | 708 | protected function validate_request( $id, $type, $context ) { |
709 | 709 |
@@ -1239,7 +1239,7 @@ |
||
1239 | 1239 | * Get the admin order notes for an order |
1240 | 1240 | * |
1241 | 1241 | * @since 2.1 |
1242 | - * @param string $order_id order ID |
|
1242 | + * @param integer $order_id order ID |
|
1243 | 1243 | * @param string|null $fields fields to include in response |
1244 | 1244 | * @return array |
1245 | 1245 | */ |
@@ -628,7 +628,7 @@ |
||
628 | 628 | * |
629 | 629 | * @since 2.6.0 |
630 | 630 | * @param int $customer_id Customer ID. |
631 | - * @return WC_Order|bool Order object if successful or false. |
|
631 | + * @return WC_Order Order object if successful or false. |
|
632 | 632 | */ |
633 | 633 | function wc_get_customer_last_order( $customer_id ) { |
634 | 634 | global $wpdb; |