ClassicPress logo
Skip to content
Filter by type:

Browse:

  • Home
  • Classes
  • WP_REST_Post_Meta_Fields
  • WP_REST_Post_Meta_Fields::get_rest_field_type()

WP_REST_Post_Meta_Fields::get_rest_field_type()

Retrieves the type for register_rest_field().


Description

See also

  • register_rest_field()


Return

(string) The REST field type.


Source

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

	public function get_rest_field_type() {
		return $this->post_type;
	}

Expand Source Code View on GitHub


Changelog

Changelog
Version Description
4.7.0 Introduced.
ClassicPress Documentation • Made with ClassicPress
Privacy Policy