Core Function
View Source on Trac ↗ get_term_parents_list()
get_term_parents_list( mixed $term_id, mixed $taxonomy, mixed $args = array() ) Retrieves term parents with separator.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $term_id int | Term ID. Required |
| $taxonomy string | Taxonomy name. Required |
| mixed | (string | array) $args { Array of optional arguments. Required |
Return Value
((string)
| WP_Error) A list of term parents on success, WP_Error or empty string on failure.
Function Information
Since Version
4.8.0
Source File
wp-includes/category-template.php
Advertisement