WP Email Manager provides the following actions:
1. wp_email_manager_create_account
This action runs when an email account is created.
do_action('wp_email_manager_create_account', $email_account);
Example usage
/**
* Runs when an email account is created
*
* @param $email_account string
*/
add_action('wp_email_manager_create_account', 'my_create_account_function');
function my_create_account_function($email_account){
//Do something e.g. send welcome email
}
2. wp_email_manager_update_account
This action runs when an email account is updated.
do_action('wp_email_manager_update_account', $email_account);
Example usage
/**
* Runs when an email account is updated
*
* @param $email_account string
*/
add_action('wp_email_manager_update_account', 'my_update_account_function');
function my_update_account_function($email_account){
//Do something
}
3. wp_email_manager_invalid_credentials
This action runs when a routine cron job (every hour) detects that the server credentials are invalid.
do_action('wp_email_manager_invalid_credentials');
Example usage
/**
* Runs when the email server credentials are invalid
*
*/
add_action('wp_email_manager_invalid_credentials', 'my_invalid_credentials_function');
function my_invalid_credentials_function(){
//Do something e.g. send sms or email notification
}