WC_API_Products::set_product_category_image_as_attachment( integer $upload )
Sets uploaded category image as attachment and returns the attachment ID.
Description Description
Parameters Parameters
- $upload
-
(Required) Upload information from wp_upload_bits
Return Return
(int) Attachment ID
Source Source
File: includes/legacy/api/v3/class-wc-api-products.php
protected function set_product_category_image_as_attachment( $upload ) { return $this->set_uploaded_image_as_attachment( $upload ); }
Changelog Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |