add_action('salesking_customers_custom_columns_header', function(){
?>
<th class="nk-tb-col tb-col-md"><span class="sub-text"><?php esc_html_e('Customer Group','salesking'); ?></span></th>
<?php
});
add_action('salesking_customers_custom_columns_content', function($customer){
$user_id = $customer->ID;
$is_b2b = get_user_meta($user_id,'b2bking_b2buser', true);
if ($is_b2b === 'yes'){
$group_id = get_user_meta($user_id,'b2bking_customergroup', true);
$group = get_the_title($group_id);
if (empty($group)){
$group = '-';
}
} else {
$group = '-';
}
?>
<td class="nk-tb-col tb-col-md">
<div>
<span class="tb-amount"><?php echo $group;?></span>
</div>
</td>
<?php
}, 1);