WordPress at a glance
функция не описана

WP_REST_Comment_Meta_Fields::get_rest_field_type() public WP 4.7.0

Retrieves the type for register_rest_field() in the context of comments.

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

Хуков нет.

Возвращает

String. The REST field type.

Использование

$WP_REST_Comment_Meta_Fields = new WP_REST_Comment_Meta_Fields();
$WP_REST_Comment_Meta_Fields->get_rest_field_type();

Changelog

Since 4.7.0 Introduced.

Код WP_REST_Comment_Meta_Fields::get_rest_field_type() WP 5.5.1

<?php
public function get_rest_field_type() {
	return 'comment';
}