Timber\Post::get_terms PHP Метод

get_terms() публичный Метод

Get the terms associated with the post This goes across all taxonomies by default
Устаревший: since 1.0
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
    public function get_terms($tax = '', $merge = true, $TermClass = '')
    {
        return $this->terms($tax, $merge, $TermClass);
    }