I am presently getting the information from a customized taxonomy utilizing this:
$phrases = get_terms(array(
'taxonomy' => 'my_custom_taxonomy_name',
'hide_empty' => true
));
Now, this returns lots of stuff in every WP_Term
object; term_id
, title
, slug
, term_group
, term_taxonomy_id
, taxonomy
, description
, mum or dad
, rely
and filter
.
I solely have to get 2 of these: title
and slug
. How can I filter that question so it would not returns all that unused knowledge?