WP_REST_Meta_Fields::get_rest_field_type(): string
Retrieves the object type for register_rest_field() .
Return
string The REST field type, such as post type name, taxonomy name, 'comment'
, or user
.
Source
File: wp-includes/rest-api/fields/class-wp-rest-meta-fields.php
.
View all references
abstract protected function get_rest_field_type();
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |