Hi Radu
Anna at WC Vendors helped out with some code for this – here it is in case it’s useful for anyone else:
COPY CODE
/* visit store on kleo bp members page */
add_action('bp_directory_members_actions', 'wcv_vendor_store_members_page');
function wcv_vendor_store_members_page() {
$vendor_id = bp_get_member_user_id();
$shop_name = WCV_Vendors::is_vendor( $vendor_id );
$store_url = WCV_Vendors::get_vendor_shop_page( $vendor_id );
$sold_by = '<div class="generic-button" id="post-mention"><a href="'.$store_url.'" class="send-message">Visit My Store</a></div>';
if (class_exists('WCV_Vendors') && class_exists('WCVendors_Pro') && WCV_Vendors::is_vendor( $vendor_id ) ) {
echo $sold_by;
}
}
(raw gist in case hte above code doesn’t display properly)
Here’s how it looks:
Cheers