WP_REST_Comment_Meta_Fields::get_rest_field_type()publicWP 4.7.0

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

Метод класса: WP_REST_Comment_Meta_Fields{}

Хуков нет.

Возвращает

Строку. The REST field type.

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

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

Список изменений

С версии 4.7.0 Введена.

Код WP_REST_Comment_Meta_Fields::get_rest_field_type() WP 6.4.3

public function get_rest_field_type() {
	return 'comment';
}