WC_REST_Products_V1_Controller::save_product_meta()
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 meta.
Method of the class: WC_REST_Products_V1_Controller{}
No Hooks.
Return
true|false
.
Usage
// protected - for code of main (parent) or child class $result = $this->save_product_meta( $product, $request );
- $product(WC_Product) (required)
- -
- $request(WP_REST_Request) (required)
- -
Changelog
Deprecated since | 3.0.0 |
WC_REST_Products_V1_Controller::save_product_meta() WC REST Products V1 Controller::save product meta code WC 9.7.1
protected function save_product_meta( $product, $request ) { $product = $this->set_product_meta( $product, $request ); $product->save(); return true; }