Support » Plugin: Email Alerts » [Plugin: Email Alerts] Change email address

Viewing 1 replies (of 1 total)
  • It’s really a matter of 5 minutes. Just add those 2 filters in your theme functions.php:

    Filtering the email address
    Add a filter for the email address using ‘add_filter’:

    add_filter( 'wp_mail_from', 'my_mail_from' );
    function my_mail_from( $email )
        return '';

    Filtering the email name
    Now add a filter for the name of the email address:

    add_filter( 'wp_mail_from_name', 'my_mail_from_name' );
    function my_mail_from_name( $name )
        return 'My Name';


Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Email Alerts] Change email address’ is closed to new replies.