GET ALL CATEGORIES IN WOOCOMMERCE
<?php $taxonomy = 'product_cat'; $orderby = 'name'; $show_count = 0; // 1 for yes, 0 for no $pad_counts = 0; // 1 for yes, 0 for no $hierarchical = 1; // 1 for yes, 0 for no $title = ''; $empty = 0; $args = array( 'taxonomy' => $taxonomy, 'orderby' => $orderby, 'show_count' => $show_count, 'pad_counts' => $pad_counts, 'hierarchical' => $hierarchical, 'title_li' => $title, 'hide_empty' => $empty ); $all_categories = get_categories( $args ); foreach ($all_categories as $cat) { $thumbnail_id = get_woocommerce_term_meta($category_id, 'thumbnail_id', true ); $image = wp_get_attachment_url( $thumbnail_id ); echo $cat->name; echo $cat->description; echo esc_url( get_term_link( $cat ) ); if($cat->category_parent == 0) { $category_id = $cat->term_id; echo '<br />...