WP_REST_Term_Meta_Fields::get_rest_field_type(): string

Retrieves the type for register_rest_field() .


Return

string The REST field type.


Top ↑

Source

File: wp-includes/rest-api/fields/class-wp-rest-term-meta-fields.php. View all references

public function get_rest_field_type() {
	return 'post_tag' === $this->taxonomy ? 'tag' : $this->taxonomy;
}

Top ↑

Changelog

Changelog
Version Description
4.7.0 Introduced.

Top ↑

User Contributed Notes

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