WPDev.one
Core Class

WP_REST_Post_Meta_Fields

class WP_REST_Post_Meta_Fields // Constructor: function Object() { [native code] }

Core class used to manage meta values for posts via the REST API.

Methods 4 methods

Method / Return Description
__construct()
void

Constructor.

Parameters: $post_type: mixed
get_meta_type()
string

Retrieves the post meta type.

get_meta_subtype()
string

Retrieves the post meta subtype.

get_rest_field_type()
string

Retrieves the type for register_rest_field().

Properties

Property / Type Description
$post_type
mixed
public
No description available.

Class Information

Since Version
4.7.0
Source File
wp-includes/rest-api/fields/class-wp-rest-post-meta-fields.php
Advertisement