Hi, I'd like to edit the side bar menu labels, is it possible?
Sidebar menu
Closed
Comments
Hi there,
I understand you'd like to edit the sidebar labels on the agent dashboard?
You can achieve that by adding the following PHP code snippet to your site:
add_filter( 'salesking_dashboard_menu_items', function($menu_items){
$menu_items['messages'][3] = 'test';
$menu_items['coupons'][3] = 'test';
$menu_items['cart-sharing'][3] = 'test';
$menu_items['affiliate-links'][3] = 'test';
$menu_items['customers'][3] = 'test';
$menu_items['orders'][3] = 'test';
$menu_items['team'][3] = 'test';
$menu_items['earnings'][3] = 'test';
$menu_items['payouts'][3] = 'test';
$menu_items['profile'][3] = 'test';
return $menu_items;
}, 10, 1);
You can replace 'test' with the name for each menu item,
A PHP snippet can be added to functions.php, or by following our guide here: https://b2bkingplugin.com/docs/how-to-add-a-snippet-php-or-js/
Kind regards,
Stefan