WordPress at a glance
function is not described

WP_REST_Post_Meta_Fields::__construct() public WP 4.7.0

Constructor.

{} It's a method of the class: WP_REST_Post_Meta_Fields{}

No Hooks.

Return

Null. Nothing.

Usage

$WP_REST_Post_Meta_Fields = new WP_REST_Post_Meta_Fields();
$WP_REST_Post_Meta_Fields->__construct( $post_type );
$post_type(string) (required)
Post type to register fields for.

Changelog

Since 4.7.0 Introduced.

Code of WP_REST_Post_Meta_Fields::__construct() WP 5.5.1

<?php
public function __construct( $post_type ) {
	$this->post_type = $post_type;
}