WC_REST_Legacy_Products_Controller::add_post_meta_fields()
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.
Add post meta fields.
Method of the class: WC_REST_Legacy_Products_Controller{}
No Hooks.
Return
true|false|WP_Error
.
Usage
// protected - for code of main (parent) or child class $result = $this->add_post_meta_fields( $post, $request );
- $post(WP_Post) (required)
- Post data.
- $request(WP_REST_Request) (required)
- Request data.
Changelog
Deprecated since | 3.0.0 |
WC_REST_Legacy_Products_Controller::add_post_meta_fields() WC REST Legacy Products Controller::add post meta fields code WC 8.7.0
protected function add_post_meta_fields( $post, $request ) { return $this->update_post_meta_fields( $post, $request ); }