WC_API_Products::upload_product_category_image( string $image_url )

Upload product category image from URL.


Description Description


Parameters Parameters

$image_url

(Required)


Top ↑

Return Return

(int|WP_Error) attachment id


Top ↑

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

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.