The Domain Manager Addon provides the following addons:
1. wp_email_manager_dm_add_domain
This action runs when a domain is added.
/**
* Runs when a domain is added via WP Email Manager - Domain Manager Addon
*
* @param $domain string
* @param $blog_id int
* @param $user_id int
* @param $active bool
* @param $source string
*/
add_action('wp_email_manager_dm_add_domain', 'my_add_domain_function', 10, 5);
function my_add_domain_function($domain, $blog_id, $user_id, $active, $source){
//Do something
}
2. wp_email_manager_dm_update_domain
This action runs when a domain is updated.
/**
* Runs when a domain is updated via WP Email Manager - Domain Manager Addon
*
* @param $domain string
* @param $blog_id int
* @param $user_id int
* @param $active bool
* @param $source string
*/
add_action('wp_email_manager_dm_update_domain', 'my_update_domain_function', 10, 5);
function my_update_domain_function($domain, $blog_id, $user_id, $active, $source){
//Do something
}
3. wp_email_manager_dm_delete_domain
This action runs when a domain is deleted.
/**
* Runs when a domain is deleted via WP Email Manager - Domain Manager Addon
*
* @param $domain string
* @param $blog_id int
* @param $user_id int
* @param $active bool
* @param $source string
*/
add_action('wp_email_manager_dm_delete_domain', 'my_delete_domain_function', 10, 5);
function my_delete_domain_function($domain, $blog_id, $user_id, $active, $source){
//Do something
}