Add_plan
The post_add_plan filter will trigger when plan is created successfully
Sample code
cluster_filter('post_add_plan', 'my_add_plan', 100, 2);
function my_add_plan($slug, $data){
// $slug will contain plan's slug name
// $data is an array containing plan data
}Expected Output
Array
(
[plan_name] => plan
[slug] => slug_name
[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] => en
[feature_sets] => 0
[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#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_account] => 1
[ftp_connections] => 1
[wp_manager_cname] => 1
[eapps] => 1
[eapps_add] => 1
[nodejs22] => 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
[imunifyav] => 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
)
)Edit_plan
The post_edit_plan filter will trigger after editing the plan
Parameters
Sample code
cluster_filter('post_edit_plan', 'my_edit_plan', 100, 3);
function my_edit_plan($slug, $data, $plan){
// $data is an array containing plan data after editing
}Expected Output
Array
(
[plan_name] => plan
[slug] => slug_name
[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
)
[home] => 0
[theme] => default
[lang] => en
[feature_sets] => 0
[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#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_account] => 1
[ftp_connections] => 1
[wp_manager_cname] => 1
[eapps] => 1
[eapps_add] => 1
[nodejs22] => 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
[imunifyav] => 1
[import_webuzo] => 1
[terminal] => 1
[login_logs] => 1
[cronjob] => 1
[import_cpanel] => 1
[import_da] => 1
[errorlog] => 1
[bandwidth] => 1
[disk_usage] => 1
[mime_type] => 1
[error_pages] => 1
[visitors] => 1
[version_control] => 1
[webdisk] => 1
)
)