WordPress.org

Support

Support » Plugins and Hacks » [Resolved] More than one email address

[Resolved] More than one email address

  • Would it be possible to add an option to enable two email addresses?

    I want one to admin and one to editor, if possible!

    Would something like this work?

    // send multiple update emails
    function XYZ_filter_auto_update_email( $email ) {
    
    $admin_email = get_bloginfo('admin_email') ;
    $extra_email = get_option('extra_email') ; // this is an added entry field within the plugin options form
    
    $recipients = array($admin_email,$extra_email);
    
    $email['to'] = $recipients;
    return $email;
    }
    add_filter( 'auto_core_update_email', 'XYZ_filter_auto_update_email', 1 );

    https://wordpress.org/plugins/background-update-notification-email-address/

Viewing 1 replies (of 1 total)
  • Plugin Author Phil Wylie

    @mustardbees

    Thanks for your suggestion!

    I’ve just pushed out a new version which allows you to enter a comma-separated list of email addresses.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] More than one email address’ is closed to new replies.