Hello (sorry for bad english) i want know how can i get the category list in woocommerce . with this code i get wordpress category list
function gaga_lite_category_lists(){
$categories = get_categories(
array(
'hide_empty' => 0,
'exclude' => 1
)
);
$category_lists = array();
$category_lists[0] = __('Select Category', 'gaga-lite');
foreach($categories as $category) :
$category_lists[$category->term_id] = $category->name;
endforeach;
return $category_lists;
}
i want replace it with woocommerce category to get woocommerce catogory please help me asap