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


Top ↑

Return Return

(int) Attachment ID


Top ↑

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 );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.5.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.