WordPress at Your Fingertips
function is not described

WC_REST_Posts_Controller::add_post_meta_fields() protected WC 1.0

Add post meta fields.

{} It's a 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.

Code of WC_REST_Posts_Controller::add_post_meta_fields() WC 5.9.0

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