wp/wp-includes/rest-api/fields/class-wp-rest-term-meta-fields.php
changeset 18 be944660c56a
parent 7 cf61fcea0001
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
    34 	public function __construct( $taxonomy ) {
    34 	public function __construct( $taxonomy ) {
    35 		$this->taxonomy = $taxonomy;
    35 		$this->taxonomy = $taxonomy;
    36 	}
    36 	}
    37 
    37 
    38 	/**
    38 	/**
    39 	 * Retrieves the object meta type.
    39 	 * Retrieves the term meta type.
    40 	 *
    40 	 *
    41 	 * @since 4.7.0
    41 	 * @since 4.7.0
    42 	 *
    42 	 *
    43 	 * @return string The meta type.
    43 	 * @return string The meta type.
    44 	 */
    44 	 */
    45 	protected function get_meta_type() {
    45 	protected function get_meta_type() {
    46 		return 'term';
    46 		return 'term';
    47 	}
    47 	}
    48 
    48 
    49 	/**
    49 	/**
    50 	 * Retrieves the object meta subtype.
    50 	 * Retrieves the term meta subtype.
    51 	 *
    51 	 *
    52 	 * @since 4.9.8
    52 	 * @since 4.9.8
    53 	 *
    53 	 *
    54 	 * @return string Subtype for the meta type, or empty string if no specific subtype.
    54 	 * @return string Subtype for the meta type, or empty string if no specific subtype.
    55 	 */
    55 	 */