Skip to content

Instantly share code, notes, and snippets.

View jas8522's full-sized avatar

Jordan S jas8522

View GitHub Profile
@KevinGraham-com
KevinGraham-com / syncuserclient.php
Created August 30, 2023 08:32
WHMCS - Sync User and Client Email on Update
<?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