WC_REST_Products_V1_Controller::save_product_images()
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.
Method of the class: WC_REST_Products_V1_Controller{}
No Hooks.
Return
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() WC REST Products V1 Controller::save product images code WC 9.8.1
protected function save_product_images( $product_id, $images ) { $product = wc_get_product( $product_id ); return set_product_images( $product, $images ); }