Cubeboy Posted May 8, 2023 Share Posted May 8, 2023 I need a hook for whmcs. it needs to load a specific page (ie salesppl.html or something) depending on the Admin Role or Admin Name instead the support page. A broke example: [?php add_hook('AdminAreaPage', 1, function($vars ) { $extraVariables = []; if ($vars['URL'] == 'insidesales.html') $extraVariables['admin_username'] = 'user1 , user2 ' else $extraVariables['administratorroles'] = 'Inside Sales'; } return $extraVariables; }); 0 Quote Link to comment Share on other sites More sharing options...
WGS Posted May 8, 2023 Share Posted May 8, 2023 Please contact us here for custom hook development https://whmcsglobalservices.com/whmcs-custom-development 0 Quote Link to comment Share on other sites More sharing options...
wsa Posted May 8, 2023 Share Posted May 8, 2023 Hello, We will be very happy to assist you with this project. Please contact us at https://www.whmcsservices.com/customwhmcs.php Hope to hear from your 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.