WC_REST_Posts_Controller::add_post_meta_fields()protectedWC 1.0

Add post meta fields.

Method of the class: WC_REST_Posts_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 Object.
$request(WP_REST_Request) (required)
WP_REST_Request Object.

WC_REST_Posts_Controller::add_post_meta_fields() code WC 8.9.0

protected function add_post_meta_fields( $post, $request ) {
	return true;
}