get_term_meta


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

Parameters:
  • (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.
Returns:
  • (mixed) If `$single` is false, an array of metadata values. If `$single` is true, a single metadata value.
Defined at:

Description

Retrieves metadata for a term.

Related Functions

get_user_meta, get_site_meta, delete_term_meta, get_usermeta, add_term_meta

Top Google Results

User discussions

wpseek mobile