WC_REST_Products_V1_Controller::save_product_imagesprotectedWC 1.0

Deprecated since 3.0.0. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.

Save product images.

Method of the class: WC_REST_Products_V1_Controller{}

No Hooks.

Returns

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->save_product_images( $product_id, $images );
$product_id(int) (required)
.
$images(array) (required)
.

Changelog

Deprecated since 3.0.0

WC_REST_Products_V1_Controller::save_product_images() code WC 10.5.0

protected function save_product_images( $product_id, $images ) {
	$product = wc_get_product( $product_id );

	return set_product_images( $product, $images );
}