Cubeboy Posted April 26, 2023 Share Posted April 26, 2023 We have started our sales department for our company we grouped them under 'inside sales' I would when they log in they get redirected to their sales page. I tried to do a hook and even have tried to user a user name as well. I rather get it to work with one one variable and it works depending on the 'Administrator Roles' <?php add_hook('AdminAreaPage', 1, function($vars) { $extraVariables = []; if ($vars['filename'] == 'addonmodules.php?module=metrics') { $extraVariables['admin_username'] = 'djone' else $extraVariables['administratorroles'] = 'Inside Sales'; } return $extraVariables; }); Thank you for all your help in advance.... 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.