WP_REST_Comment_Meta_Fields::get_rest_field_type() – Retrieves the type for register_rest_field() in the context of comments.

You appear to be a bot. Output may be restricted

Description

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

Usage

$string = WP_REST_Comment_Meta_Fields::get_rest_field_type();

Parameters

Returns

string The REST field type.

Source

File name: wordpress/wp-includes/rest-api/fields/class-wp-rest-comment-meta-fields.php
Lines:

1 to 3 of 3
  public function get_rest_field_type() {
    return 'comment';
  }
 

 View on GitHub View on Trac