The pre_create_user filter will trigger before user creation
Sample code
add_filter('pre_create_user', 'pre_create_user', 100, 1);
function pre_create_user($data){
// $data is an array containing users data
}Expected Output
Array
(
[domain] => domain.com
[user] => username
[resource_limit] =>
[user_passwd] => password
[email] => example@gmail.com
[plan] => plan
[homedir] => /home/username
[p] => Array
(
[max_disk_limit] => unlimited
[max_inode] => unlimited
[max_bandwidth_limit] => unlimited
[max_ftp_account] => unlimited
[max_email_account] => unlimited
[max_quota_email] => unlimited
[max_database] => unlimited
[max_subdomain] => unlimited
[max_parked_domain] => unlimited
[max_addon_domain] => unlimited
[max_hourly_email] => unlimited
[max_percent_failed] => unlimited
[options] => Array
(
[shell] => 1
)
[theme] => default
[lang] => en
)
[reseller] =>
[owner] =>
)The create_user filter will trigger after user creation
Sample code
add_filter('create_user', 'post_create_user', 100, 1);
function post_create_user($data){
// $data is an array containing users data
}Expected Output
Array
(
[domain] => domain.com
[user] => Username
[resource_limit] =>
[user_passwd] => password
[email] => example@gmail.com
[plan] =>
[homedir] => /home/username
[p] => Array
(
[max_disk_limit] => unlimited
[max_inode] => unlimited
[max_bandwidth_limit] => unlimited
[max_ftp_account] => unlimited
[max_email_account] => unlimited
[max_quota_email] => unlimited
[max_database] => unlimited
[max_subdomain] => unlimited
[max_parked_domain] => unlimited
[max_addon_domain] => unlimited
[max_hourly_email] => unlimited
[max_percent_failed] => unlimited
[options] => Array
(
[shell] => 1
)
[theme] => default
[lang] => en
)
[reseller] =>
[owner] =>
[skip_default_mail] =>
)The pre_edit_user filter will trigger before edit user
Sample code
add_filter('pre_edit_user', 'pre_edit_user', 100, 2);
function pre_edit_user($data, $user){
// $data is an array containing users data
// $user will be username
}Expected Output
Array
(
[domain] => domain.com
[user] => username
[resource_limit] =>
[user_passwd] => password
[email] => example@gmail.com
[plan] =>
[p] => Array
(
[max_disk_limit] => unlimited
[max_inode] => unlimited
[max_bandwidth_limit] => unlimited
[max_ftp_account] => unlimited
[max_email_account] => unlimited
[max_quota_email] => unlimited
[max_database] => unlimited
[max_subdomain] => unlimited
[max_parked_domain] => unlimited
[max_addon_domain] => unlimited
[max_hourly_email] => unlimited
[max_percent_failed] => unlimited
[options] => Array
(
[shell] => 1
)
[theme] => default
[lang] => en
)
[reseller] =>
[owner] =>
)The edit_user filter will trigger after edit user
Sample code
add_filter('edit_user', 'post_edit_user', 100, 1);
function post_edit_user($data){
// $data is an array containing users data
}Expected Output
Array
(
[domain] => domain.com
[user] => username
[resource_limit] =>
[user_passwd] => password
[email] => example@gmail.com
[plan] =>
[p] => Array
(
[max_disk_limit] => unlimited
[max_inode] => unlimited
[max_bandwidth_limit] => unlimited
[max_ftp_account] => unlimited
[max_email_account] => unlimited
[max_quota_email] => unlimited
[max_database] => unlimited
[max_subdomain] => unlimited
[max_parked_domain] => unlimited
[max_addon_domain] => unlimited
[max_hourly_email] => unlimited
[max_percent_failed] => unlimited
[options] => Array
(
[shell] => 1
)
[theme] => default
[lang] => en
)
[reseller] =>
[owner] =>
[skip_default_mail] =>
)The delete_user filter will trigger before user deletion
Sample code
add_filter('delete_user', 'pre_delete_user', 100, 2);
function pre_delete_user($user, $userdata){
// $userdata is an array containing users data
// $user will be username
}}Expected Output
Array
(
[domain] => domain.com
[user] => username
[resource_limit] =>
[email] => example@gmail.com
[plan] =>
[homedir] => /home/username
[p] => Array
(
[max_disk_limit] => unlimited
[max_inode] => unlimited
[max_bandwidth_limit] => unlimited
[max_ftp_account] => unlimited
[max_email_account] => unlimited
[max_quota_email] => unlimited
[max_database] => unlimited
[max_subdomain] => unlimited
[max_parked_domain] => unlimited
[max_addon_domain] => unlimited
[max_hourly_email] => unlimited
[max_percent_failed] => unlimited
[options] => Array
(
)
[theme] => default
[lang] => en
)
[reseller] =>
[owner] =>
[uuid] => izx3wopb
[created] => 1762409454
[domains] => Array
(
[domain.com] => Array
(
[path] => /home/username/public_html
[type] => parked
)
)
[P] => Array
(
[max_disk_limit] => unlimited
[max_inode] => unlimited
[max_bandwidth_limit] => unlimited
[max_ftp_account] => unlimited
[max_email_account] => unlimited
[max_quota_email] => unlimited
[max_database] => unlimited
[max_subdomain] => unlimited
[max_parked_domain] => unlimited
[max_addon_domain] => unlimited
[max_hourly_email] => unlimited
[max_percent_failed] => unlimited
[options] => Array
(
)
[theme] => default
[lang] => en
[features] => Array
(
[domainmanage] => 1
[domainadd] => 1
[addon_domain] => 1
[sub_domain] => 1
[aliases] => 1
[redirects] => 1
[advancedns] => 1
[network_tools] => 1
[db_wizard] => 1
[dbmanage] => 1
[dbmanage#adddb] => 1
[dbmanage#adddbuser] => 1
[dbmanage#dbtouser] => 1
[dbmanage#currentdb] => 1
[dbmanage#currentuser] => 1
[phpmyadmin] => 1
[remote_mysql_access] => 1
[sslkey] => 1
[sslcsr] => 1
[sslcrt] => 1
[install_cert] => 1
[acme] => 1
[ftp] => 1
[ftp_account] => 1
[ftp_connections] => 1
[wp_manager_cname] => 1
[softaculous] => 1
[eapps] => 1
[eapps_add] => 1
[backuply] => 1
[email_account] => 1
[mxentry] => 1
[webuzo_rainloop] => 1
[email_forward] => 1
[email_router] => 1
[add_email_autoresponder] => 1
[default_address] => 1
[track_email_delivery] => 1
[email_filter] => 1
[email_queue] => 1
[add_email_account] => 1
[create_email_filter] => 1
[email_deliverability] => 1
[address_importer] => 1
[email_relayers] => 1
[email_sent_summary] => 1
[encryption] => 1
[boxtrapper] => 1
[split_delivery] => 1
[mailing_list] => 1
[email_disk_usage] => 1
[apikey] => 1
[multi_php] => 1
[multiphp_ini_editor] => 1
[php_pear] => 1
[pear_module] => 1
[php_extension] => 1
[changepassword] => 1
[ipblock] => 1
[ssh_access] => 1
[ssh_import_keys] => 1
[ssh_generate_keys] => 1
[pass_protect_dir] => 1
[hotlink_protect] => 1
[import_webuzo] => 1
[terminal] => 1
[filemanager] => 1
[login_logs] => 1
[cronjob] => 1
[import_cpanel] => 1
[import_da] => 1
[errorlog] => 1
[user_logs] => 1
[bandwidth] => 1
[disk_usage] => 1
[mime_type] => 1
[error_pages] => 1
[visitors] => 1
[version_control] => 1
[webdisk] => 1
[webuzo_backup] => 1
)
)
[WU_dir] => /var/webuzo/users/username/
)Post_delete_user
The post_delete_user filter will trigger after user deletion
Sample code
add_filter('post_delete_user', 'post_delete_user', 100, 2);
function post_delete_user($user, $userdata){
// $userdata is an array containing users data
// $user will be username
}Expected Output
Array
(
[domain] => domain.com
[user] => username
[resource_limit] =>
[email] => example@gmail.com
[plan] =>
[homedir] => /home/username
[p] => Array
(
[max_disk_limit] => unlimited
[max_inode] => unlimited
[max_bandwidth_limit] => unlimited
[max_ftp_account] => unlimited
[max_email_account] => unlimited
[max_quota_email] => unlimited
[max_database] => unlimited
[max_subdomain] => unlimited
[max_parked_domain] => unlimited
[max_addon_domain] => unlimited
[max_hourly_email] => unlimited
[max_percent_failed] => unlimited
[options] => Array
(
)
[theme] => default
[lang] => en
)
[reseller] =>
[owner] =>
[uuid] => izx3wopb
[created] => 1762409454
[domains] => Array
(
[domain.com] => Array
(
[path] => /home/username/public_html
[type] => parked
)
)
[P] => Array
(
[max_disk_limit] => unlimited
[max_inode] => unlimited
[max_bandwidth_limit] => unlimited
[max_ftp_account] => unlimited
[max_email_account] => unlimited
[max_quota_email] => unlimited
[max_database] => unlimited
[max_subdomain] => unlimited
[max_parked_domain] => unlimited
[max_addon_domain] => unlimited
[max_hourly_email] => unlimited
[max_percent_failed] => unlimited
[options] => Array
(
)
[theme] => default
[lang] => en
[features] => Array
(
[domainmanage] => 1
[domainadd] => 1
[addon_domain] => 1
[sub_domain] => 1
[aliases] => 1
[redirects] => 1
[advancedns] => 1
[network_tools] => 1
[db_wizard] => 1
[dbmanage] => 1
[dbmanage#adddb] => 1
[dbmanage#adddbuser] => 1
[dbmanage#dbtouser] => 1
[dbmanage#currentdb] => 1
[dbmanage#currentuser] => 1
[phpmyadmin] => 1
[remote_mysql_access] => 1
[sslkey] => 1
[sslcsr] => 1
[sslcrt] => 1
[install_cert] => 1
[acme] => 1
[ftp] => 1
[ftp_account] => 1
[ftp_connections] => 1
[wp_manager_cname] => 1
[softaculous] => 1
[eapps] => 1
[eapps_add] => 1
[backuply] => 1
[email_account] => 1
[mxentry] => 1
[webuzo_rainloop] => 1
[email_forward] => 1
[email_router] => 1
[add_email_autoresponder] => 1
[default_address] => 1
[track_email_delivery] => 1
[email_filter] => 1
[email_queue] => 1
[add_email_account] => 1
[create_email_filter] => 1
[email_deliverability] => 1
[address_importer] => 1
[email_relayers] => 1
[email_sent_summary] => 1
[encryption] => 1
[boxtrapper] => 1
[split_delivery] => 1
[mailing_list] => 1
[email_disk_usage] => 1
[apikey] => 1
[multi_php] => 1
[multiphp_ini_editor] => 1
[php_pear] => 1
[pear_module] => 1
[php_extension] => 1
[changepassword] => 1
[ipblock] => 1
[ssh_access] => 1
[ssh_import_keys] => 1
[ssh_generate_keys] => 1
[pass_protect_dir] => 1
[hotlink_protect] => 1
[import_webuzo] => 1
[terminal] => 1
[filemanager] => 1
[login_logs] => 1
[cronjob] => 1
[import_cpanel] => 1
[import_da] => 1
[errorlog] => 1
[user_logs] => 1
[bandwidth] => 1
[disk_usage] => 1
[mime_type] => 1
[error_pages] => 1
[visitors] => 1
[version_control] => 1
[webdisk] => 1
[webuzo_backup] => 1
)
)
[WU_dir] => /var/webuzo/users/username/
)Suspend_user
The suspend_user filter will trigger when user is suspended
Sample code
add_filter('suspend_user', 'suspend_user', 100, 1);
function suspend_user($user){
// $user will contain username
}Unsuspend_user
The unsuspend_user filter will trigger when user is unsuspended
Sample code
add_filter('unsuspend_user', 'suspend_user', 100, 1);
function unsuspend_user($user){
// $user will contain username
}Change_password
The changed_password filter will trigger when user password is successfully changed
Sample code
add_filter('changed_password', 'change_password', 100, 2);
function change_password($user, $password){
// $user will contain username
// $password will contain password
}