get_term_meta ( $term_id, $key = '', $single = false )

  • (int) $term_id Term ID.
  • (string) $key Optional. The meta key to retrieve. If no key is provided, fetches all metadata for the term.
  • (bool) $single Whether to return a single value. If false, an array of all values matching the `$term_id`/`$key` pair will be returned. Default: false.
  • (mixed) If `$single` is false, an array of metadata values. If `$single` is true, a single metadata value.
Defined at:


Retrieves metadata for a term.

Related Functions

get_site_meta, get_user_meta, delete_term_meta, get_usermeta, register_term_meta

Top Google Results

User discussions

wpseek mobile