Get type Taxonomy

<?php 
    $cat_args4 = array(
        'taxonomy'               => 'product_cat',
        'orderby'                => 'name',
        'order'                  => 'ASC',
        'hide_empty'             => false,
        'include'                => array(),
        'exclude'                => array('uncategorized'),
        'exclude_tree'           => array(),
        'number'                 => -1,
        'offset'                 => '5',
        'fields'                 => 'all',
        'name'                   => '',
        'slug'                   => '',
        'hierarchical'           => true,
        'search'                 => '',
        'name__like'             => '',
        'description__like'      => '',
        'pad_counts'             => false,
        'get'                    => '',
        'child_of'               => 0,
        'parent'                 => '',
        'childless'              => false,
        'cache_domain'           => 'core',
        'update_term_meta_cache' => true,
        'meta_query'             => ''
    );
    $product_categories4 = get_terms($cat_args4 ); ?>
    <li class="more dropbtn"> <!-- <a href="#"><i class="far fa-plus"></i> More</a> -->
      <ul class="submenu">
        <?php foreach ( $product_categories4 as $term4 ) {
          $term_linkb = get_term_link( $term4 );
          $thumbnail_idb = get_woocommerce_term_meta( $term4->term_id, 'thumbnail_id', true ); 
          $imagek = wp_get_attachment_url( $thumbnail_idb ); ?>
          <li>
            <span><img src="<?php echo $imagek ?>"/></span>
            <a class="shopping-now" href="<?php esc_url( $term_linkb ); ?>"> <?php $term4->name ?></a> 
          </li>
        <?php } ?>
      </ul>
    </li>

Leave a comment