WordPress.org

Ready to get started?Download WordPress

Forums

Background Update Notification Email Address
[resolved] More than one email address (2 posts)

  1. Iamhere
    Member
    Posted 10 months ago #

    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/

  2. Phil Wylie
    Member
    Posted 8 months ago #

    Thanks for your suggestion!

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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.