WP_REST_Meta_Fields::get_rest_field_type()

Retrieves the object type for register_rest_field().


Return Return

(string) The REST field type, such as post type name, taxonomy name, 'comment', or user.


Top ↑

Source Source

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

	abstract protected function get_rest_field_type();


Top ↑

Changelog 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.