WP_REST_User_Meta_Fields::get_rest_field_type

Advertisement

Summery Summery

Retrieves the type for register_rest_field().

Syntax Syntax

WP_REST_User_Meta_Fields::get_rest_field_type()

Return Return

(string) The user REST field type.

Source Source

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

	public function get_rest_field_type() {
		return 'user';
	}

Advertisement

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.