cmb2-taxonomy
cmb2-taxonomy copied to clipboard
Is there a way to use get_terms and filter by custom taxonomy field?
Is there a way to use get_terms and filter by custom taxonomy field?
Something like that :
$args = array(
'hide_empty' => false,
'meta_query' =>
array(
'key' => 'segment',
'value' => 'chemicals',
'compare' => 'LIKE'
)
);
$product_groups = get_terms('product_group', $args);