W3cubDocs

/WordPress

WP_REST_Meta_Fields::get_meta_type()

Retrieves the object meta type.

Return

(string) One of 'post', 'comment', 'term', 'user', or anything else supported by _get_meta_table().

Source

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

abstract protected function get_meta_type();

Changelog

Version Description
4.7.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_rest_meta_fields/get_meta_type