WordPress at a glance
function is not described

WC_API_Products::upload_product_category_image() public WC 2.5.0

Upload product category image from URL.

{} It's a method of the class: WC_API_Products{}

No Hooks.

Return

Int|WP_Error. attachment id

Usage

$WC_API_Products = new WC_API_Products();
$WC_API_Products->upload_product_category_image( $image_url );
$image_url(string) (required)
-

Changelog

Since 2.5.0 Introduced.

Code of WC_API_Products::upload_product_category_image() WC 5.0.0

<?php
public function upload_product_category_image( $image_url ) {
	return $this->upload_image_from_url( $image_url, 'product_category_image' );
}