WC_REST_Products_V1_Controller::add_post_meta_fields
Add post meta fields.
Method of the class: WC_REST_Products_V1_Controller{}
No Hooks.
Returns
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.
WC_REST_Products_V1_Controller::add_post_meta_fields() WC REST Products V1 Controller::add post meta fields code WC 10.3.6
protected function add_post_meta_fields( $post, $request ) {
return $this->update_post_meta_fields( $post, $request );
}