add_shortcode('display_vendors', function(){
ob_start();
$vendors_active = get_users(array(
'meta_key' => 'marketking_group',
'meta_value' => 'none',
'meta_compare' => '!=',
));
$random_vendors = array_rand($vendors_active, 4);
foreach ($random_vendors as $vendor){
$vendor_id = $vendors_active[$vendor]->data->ID;
$store_name = marketking()->get_store_name_display($vendor_id);
$store_link = marketking()->get_store_link($vendor_id);
$profile_image = marketking()->get_store_profile_image_link($vendor_id);
$banner_image = marketking()->get_store_banner_image_link($vendor_id);
?>
<h2> <?php echo $store_name; ?></h2> <br>
<?php
}
return ob_get_clean();
});