WC_API_Products::upload_product_category_image( string $image_url )
Upload product category image from URL.
Description Description
Parameters Parameters
- $image_url
-
(Required)
Return Return
(int|WP_Error) attachment id
Source Source
File: includes/legacy/api/v3/class-wc-api-products.php
public function upload_product_category_image( $image_url ) { return $this->upload_image_from_url( $image_url, 'product_category_image' ); }
Changelog Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |