WP_REST_Term_Meta_Fields::get_rest_field_type()
{} It's a method of the class: WP_REST_Term_Meta_Fields{}
No Hooks.
Return
String
. The REST field type.
Usage
$WP_REST_Term_Meta_Fields = new WP_REST_Term_Meta_Fields(); $WP_REST_Term_Meta_Fields->get_rest_field_type();
Changelog
Since 4.7.0 | Introduced. |
Code of WP_REST_Term_Meta_Fields::get_rest_field_type() WP REST Term Meta Fields::get rest field type WP 5.9.3
public function get_rest_field_type() { return 'post_tag' === $this->taxonomy ? 'tag' : $this->taxonomy; }