iwanndie Posted March 29, 2022 Share Posted March 29, 2022 When a customer signs up, and account is created with cPanel module, is it possible to change the email being used for their cPanel account to something else other than what the client signed up with? 0 Quote Link to comment Share on other sites More sharing options...
iwanndie Posted March 29, 2022 Author Share Posted March 29, 2022 I am using PreModuleCreate 0 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted March 30, 2022 Share Posted March 30, 2022 (edited) <?php add_hook('PreModuleCreate', 1, function($vars) { // dump hook variables error_log(print_r($vars['params'], true), 3, 'vars.log'); // override email $params['clientsdetails']['email'] = 'new@email.com'; // return new param return $params; }); Something like that ? Edited March 30, 2022 by pRieStaKos 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.