taxonomy = $taxonomy; } /** * Retrieves the object meta type. * * @since 4.7.0 * @access protected * * @return string The meta type. */ protected function get_meta_type() { return 'term'; } /** * Retrieves the type for register_rest_field(). * * @since 4.7.0 * @access public * * @return string The REST field type. */ public function get_rest_field_type() { return 'post_tag' === $this->taxonomy ? 'tag' : $this->taxonomy; } }