<?php global $product; $author = get_user_by( 'id', $product->post->post_author ); $store_info = dokan_get_store_info( $author->ID ); if ( !empty( $store_info['store_name'] ) ) { ?> <span class="details"> <?php echo $store_info['price']; ?> <?php printf( '<a href="%s">%s</a>', dokan_get_store_url($author->ID), $author->display_name ); ?> </span> <?php } ?>