Turns Terms or an array of terms from a hierarchical vocabulary into a ordered HTML list with list items for each term.
public static term_tree ( mixed $terms, string $tree_name, array $config = [] ) : string | ||
$terms | mixed | An array of Term objects or a Terms object. |
$tree_name | string | The name of the tree, used for unique node id's |
$config | array | an array of values to use to configure the output of this function |
Результат | string | The transformed vocabulary. |