WP_REST_User_Meta_Fields::get_rest_field_type(): string
Retrieves the type for register_rest_field() .
Contents
Return
string The user REST field type.
Source
File: wp-includes/rest-api/fields/class-wp-rest-user-meta-fields.php
.
View all references
public function get_rest_field_type() {
return 'user';
}
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |