@@ -109,7 +109,7 @@ |
||
109 | 109 | /** |
110 | 110 | * Init/load the order object. Called from the constructor. |
111 | 111 | * |
112 | - * @param int|object|WC_Order $order Order to init. |
|
112 | + * @param integer $order Order to init. |
|
113 | 113 | */ |
114 | 114 | protected function init( $order ) { |
115 | 115 | if ( is_numeric( $order ) ) { |
@@ -2276,7 +2276,7 @@ discard block |
||
2276 | 2276 | * |
2277 | 2277 | * @since 2.2 |
2278 | 2278 | * @param string $image_url |
2279 | - * @return int|WP_Error attachment id |
|
2279 | + * @return integer attachment id |
|
2280 | 2280 | */ |
2281 | 2281 | public function upload_product_image( $image_url ) { |
2282 | 2282 | return $this->upload_image_from_url( $image_url ); |
@@ -2388,7 +2388,7 @@ discard block |
||
2388 | 2388 | * Set uploaded image as attachment. |
2389 | 2389 | * |
2390 | 2390 | * @since 2.5.0 |
2391 | - * @param array $upload Upload information from wp_upload_bits |
|
2391 | + * @param integer $upload Upload information from wp_upload_bits |
|
2392 | 2392 | * @param int $id Post ID. Default to 0. |
2393 | 2393 | * @return int Attachment ID |
2394 | 2394 | */ |
@@ -201,7 +201,7 @@ |
||
201 | 201 | /** |
202 | 202 | * Parse file path and see if its remote or local. |
203 | 203 | * @param string $file_path |
204 | - * @return array |
|
204 | + * @return string |
|
205 | 205 | */ |
206 | 206 | public static function parse_file_path( $file_path ) { |
207 | 207 | $wp_uploads = wp_upload_dir(); |
@@ -80,7 +80,7 @@ |
||
80 | 80 | |
81 | 81 | /** |
82 | 82 | * Get the product object. |
83 | - * @param mixed $the_product |
|
83 | + * @param boolean $the_product |
|
84 | 84 | * @uses WP_Post |
85 | 85 | * @return WP_Post|bool false on failure |
86 | 86 | */ |
@@ -1994,7 +1994,7 @@ |
||
1994 | 1994 | * |
1995 | 1995 | * @since 2.5.0 |
1996 | 1996 | * @param string $image_url |
1997 | - * @return int|WP_Error attachment id |
|
1997 | + * @return integer attachment id |
|
1998 | 1998 | * @throws WC_CLI_Exception |
1999 | 1999 | */ |
2000 | 2000 | private function upload_product_image( $image_url ) { |
@@ -44,7 +44,7 @@ |
||
44 | 44 | * Load the persistent cart. |
45 | 45 | * |
46 | 46 | * @param string $user_login |
47 | - * @param WP_User $user |
|
47 | + * @param integer $user |
|
48 | 48 | * @deprecated 2.3 |
49 | 49 | */ |
50 | 50 | function wc_load_persistent_cart( $user_login, $user ) { |
@@ -599,7 +599,7 @@ |
||
599 | 599 | * |
600 | 600 | * @since 2.2 |
601 | 601 | * @param array $args |
602 | - * @return WC_Order_Refund|WP_Error |
|
602 | + * @return string |
|
603 | 603 | */ |
604 | 604 | function wc_create_refund( $args = array() ) { |
605 | 605 | $default_args = array( |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | * WooCommerce Term Meta API - Delete term meta. |
274 | 274 | * |
275 | 275 | * @param mixed $term_id |
276 | - * @param mixed $meta_key |
|
276 | + * @param string $meta_key |
|
277 | 277 | * @param string $meta_value (default: '') |
278 | 278 | * @param bool $delete_all (default: false) |
279 | 279 | * @return bool |
@@ -646,7 +646,6 @@ discard block |
||
646 | 646 | |
647 | 647 | /** |
648 | 648 | * When a post is updated and terms recounted (called by _update_post_term_count), clear the ids. |
649 | - * @param int $term_id |
|
650 | 649 | * @param int $object_id Object ID. |
651 | 650 | * @param array $terms An array of object terms. |
652 | 651 | * @param array $tt_ids An array of term taxonomy IDs. |
@@ -284,7 +284,7 @@ |
||
284 | 284 | /** |
285 | 285 | * get_attachments function. |
286 | 286 | * |
287 | - * @return string|array |
|
287 | + * @return string |
|
288 | 288 | */ |
289 | 289 | public function get_attachments() { |
290 | 290 | return apply_filters( 'woocommerce_email_attachments', array(), $this->id, $this->object ); |