How I can get from php on wordpress to a value of WP_Term object. I am using the next code to get the object:
$queried_object = get_the_category( get_queried_object_id());
But this return an Array like this.
Array (  => WP_Term Object ( [term_id] => 12 [name] => Argentina ... ) )
How I can get only the value for [name] key in this object from php in wordpress?