Hi, is there ani quick trick to show on Agent's dashboard info about his current Group name?
Showing Agent group name in Agent's dashboard
Closed
Comments
Hi Lukasz,
Certainly, we can add a code snippet for that. Is there any particular place where you want to display this?
You can add this snippet:
add_action('salesking_dashboard_header_bar', function(){
$user_id = get_current_user_id();
$group_id = get_user_meta($user_id, 'salesking_group', true);
echo 'Your agent group is: '.get_the_title($group_id);
});
It adds that info to the header bar:

Let me know if you need adjustments,
Kind regards,
Stefan
Thank You so much. Excellent support !
1