WP_REST_Comment_Meta_Fields::get_rest_field_type()
Retrieves the type for register_rest_field() in the context of comments.
Method of the class: WP_REST_Comment_Meta_Fields{}
No Hooks.
Return
String
. The REST field type.
Usage
$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 REST Comment Meta Fields::get rest field type code WP 6.6.2
public function get_rest_field_type() { return 'comment'; }