Ok, I think I got it! 😀
After some research in theme functions how taxonomy hierarchy structure is done I modified the code as below (don’t know if it’s coded good but it works):
/*
* Display filter taxonomies
*/
static public function taxonomy_listing( $name, $terms, $taxonomy, $selected_term, $hide_empty = false ){
$search_more_less = adifier_get_option( 'search_more_less' );
$counter = 0;
foreach( $terms as $term ){
$counter++;
?>
<li class="<?php echo !empty( $search_more_less ) && $counter > $search_more_less ? esc_attr( 'term-hidden' ) : '' ?>">
<div class="styled-radio">
<input type="radio" name="<?php echo esc_attr( $name ) ?>" value="<?php echo esc_attr( $term->term_id ) ?>" id="<?php echo esc_attr( $name ) ?>-<?php echo esc_attr( $term->term_id ) ?>" <?php echo $term->term_id == $selected_term ? esc_attr( 'checked="checked"' ) : '' ?>>
<label for="<?php echo esc_attr( $name ) ?>-<?php echo esc_attr( $term->term_id ) ?>"><?php echo $term->name ?></label>
<?php
if( !empty( $term->children ) ){
?>
<a href="https://wordpress.stackexchange.com/questions/328189/javascript:void(0);"><i class="aficon-angle-down"></i></a>
<?php
}
?>
</div>
<?php
if( !empty( $term->children = adifier_get_taxonomy_hierarchy( $taxonomy, $term->term_id, $hide_empty ) ) ){
?>
<ul class="list-unstyled hidden">
<?php self::taxonomy_listing( $name, $term->children, $taxonomy, $selected_term ); ?>
</ul>
<?php
}
?>
</li>
<?php
}