This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!defined('WHMCS')) { | |
exit('This file cannot be accessed directly'); | |
} | |
add_hook('UserEdit', 5, 'sync_user_to_client'); | |
add_hook('ClientEdit', 5, 'sync_client_to_user'); | |
function sync_user_to_client($vars) { | |
// gather the data |