WordPress at a glance
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.

Return

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

Usage

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

Changelog

Since 4.7.0 Introduced.

Code of WP_REST_Meta_Fields::get_rest_field_type() WP 5.5.1

<?php
abstract protected function get_rest_field_type();