i think this is what you need:
$args = array(
'orderby' => 'name',
'hide_empty' => 1
);
$category_terms = get_terms( 'product_cat', $args );
foreach($category_terms as $cat_term){
echo $cat_term->name;
}
btw: woocommerce is offtopic here!
i think this is what you need:
$args = array(
'orderby' => 'name',
'hide_empty' => 1
);
$category_terms = get_terms( 'product_cat', $args );
foreach($category_terms as $cat_term){
echo $cat_term->name;
}
btw: woocommerce is offtopic here!