WordPress at Your Fingertips
function is not described

WP_REST_Meta_Fields::get_rest_field_type() protected WP 4.7.0

Retrieves the object type for register_rest_field().

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

No Hooks.


String. The REST field type, such as post type name, taxonomy name, 'comment', or user.


// protected - for code of main (parent) or child class
$result = $this->get_rest_field_type();


Since 4.7.0 Introduced.

Code of WP_REST_Meta_Fields::get_rest_field_type() WP 5.8

abstract protected function get_rest_field_type();