• Resolved nesoor

    (@nesoor)


    Hello,

    Its a great plugin I really like it ! I can’t wait till this is built into the core.
    However I manage a lot of websites so emails about plugins and themes being updated is really annoying to be honest. I get so many emails each day.

    Can I enable just emails for failed updates instead ?
    Waking up in the morning being bombed by update emails is not nice ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jb Audras

    (@audrasjb)

    Hello, thanks for your feedback!

    Yes sure, you can use wp_autoupdates_notifications_email hook to filter emails, including their whole content and even produce your own email notification ??

    Here is the code snippets you’ll want to hook on:

    $email = apply_filters( 'wp_autoupdates_notifications_email', $email, $type, $successful_updates, $failed_updates );
    	wp_mail( $email['to'], wp_specialchars_decode( $email['subject'] ), $email['body'], $email['headers'] );
    

    (please remember this is a feature plugin, so those hooks may change once it is committed into WordPress Core ?? )

    Cheers,
    Jb

    Hi Nesoor

    Add the following to your child theme functions.php file:

    
    add_filter( 'send_plugins_auto_update_email', '__return_false' ); 
    add_filter( 'send_themes_auto_update_email', '__return_false' );
    

    OR to the wp-config.php file:

    
    define( 'WP_DISABLE_PLUGINS_AUTO_UPDATE_EMAIL', true );
    define( 'WP_DISABLE_THEMES_AUTO_UPDATE_EMAIL', true );
    
    Plugin Author Jb Audras

    (@audrasjb)

    Thanks for completing the answer, Paal ??

    Thread Starter nesoor

    (@nesoor)

    Hey @audrasjb & @paaljoachim

    Sorry I forgot to reply !
    Thanks for all the support, I really appreciate that ??

    The existing constants have been removed but the filter method would still work.
    https://github.com/WordPress/wp-autoupdates/pull/112

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Turn off update emails’ is closed to new replies.