WordPress.org

Forums

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

  1. Iamhere
    Member
    Posted 1 year 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
    Plugin Author

    Posted 1 year 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Background Update Notification Email Address
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.