public get_terms ( string | array $tax = '', boolean $merge = true, $TermClass = '' ) : array | ||
$tax | string | array | What taxonom(y|ies) to pull from. Defaults to all registered taxonomies for the post type. You can use custom ones, or built-in WordPress taxonomies (category, tag). Timber plays nice and figures out that tag/tags/post_tag are all the same (and categories/category), for custom taxonomies you're on your own. |
$merge | boolean | Should the resulting array be one big one (true)? Or should it be an array of sub-arrays for each taxonomy (false)? |
Результат | array |