WP_REST_Post_Meta_Fields::__construct( string $post_type )
Constructor.
Description Description
Parameters Parameters
- $post_type
-
(string) (Required) Post type to register fields for.
Source Source
File: wp-includes/rest-api/fields/class-wp-rest-post-meta-fields.php
public function __construct( $post_type ) {
$this->post_type = $post_type;
}
Expand full source code Collapse full source code View on Trac
Changelog Changelog
| Version | Description |
|---|---|
| 4.7.0 | Introduced. |