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: - Introduced in WordPress: 4.8.0
- Deprecated in WordPress: —
Description
Retrieves term parents with separator.