The pre_delete_domain filter will trigger your function just before Domain delete is triggered
Parameters
Sample code
//FILTER to call specific function
add_filter('pre_delete_domain', 'pre_delete_domain', 10, 2);
function pre_delete_domain($user, $domain){
// $user will be username and $domains will contain domain name
}Post_delete_domain
The post_delete_domain filter will trigger your function after a Domain is deleted successfully
Parameters
Sample code
FILTER to call specific function
add_filter('post_delete_domain', 'post_delete_domain', 10, 2);
function post_delete_domain($user, $domain){
// $user will be username and $domains will contain domain name
}.Convert_addon
The convert_addon filter will trigger your function after a Addon Domain is converted in user successfully
Sample code
add_filter('convert_addon', 'convert_addon_domain', 100, 2);
function convert_addon_domain($domain, $data){
// $domains will contain domain name
// $data is an array containing users data
}.Expected Output
Array
(
[domain] => domain.com
[username] => username
[name] => name
[user] => username
[user_passwd] => password
[email] => example@gmail.com
[plan] =>
[homedir] => /home/username
[owner] =>
[p] => Array
(
[options] => 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
)
[home] => 0
[theme] => default
[lang] => english
[feature_sets] => 0
)