get_term_parents_list


get_term_parents_list ( $term_id, $taxonomy, $args = array() )

Parameters:
  • (int) term_id Term ID.
  • (string) taxonomy Taxonomy name.
  • (string|array) args { Array of optional arguments. @type string $format Use term names or slugs for display. Accepts 'name' or 'slug'. Default 'name'. @type string $separator Separator for between the terms. Default '/'. @type bool $link Whether to format as a link. Default true. @type bool $inclusive Include the term to get the parents for. Default true. }
Returns:
  • (string|WP_Error) A list of term parents on success, WP_Error or empty string on failure.
Defined at:

Description

Retrieves term parents with separator.

Related Functions

get_theme_feature_list, get_category_parents, get_term_to_edit, get_the_tag_list, get_the_term_list

Top Google Results

User discussions

wpseek mobile