WC_REST_Products_V1_Controller::save_product_images() protected WC 1.0
Deprecated from version 3.0.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.╳
Save product images.
{} It's a method of the class: WC_REST_Products_V1_Controller{}
No Hooks.
Return
Null. Nothing.
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 | 3.0.0 |
Code of WC_REST_Products_V1_Controller::save_product_images() WC REST Products V1 Controller::save product images WC 5.0.0
protected function save_product_images( $product_id, $images ) {
$product = wc_get_product( $product_id );
return set_product_images( $product, $images );
}