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

Return Return

(string) The REST field type.

Top ↑

Source Source

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

	public function get_rest_field_type() {
		return 'comment';

Top ↑

Changelog Changelog

Version Description
4.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.