• Resolved flaviendev

    (@flaviendev)


    Hello,
    I’m using this plugin and i want to know if it is possible to disable auto-updates emails or if the answer is no, can you please add this possibility ?
    Thank you so much for this plugin !
    Cordially

    D.F

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey @flaviendev
    I just posted the same question and afterwards I stumbled on your “Question” topic.
    It would be indeed nice if only the failed update emails will be sent.

    • This reply was modified 4 years, 6 months ago by nesoor.
    Plugin Author Jb Audras

    (@audrasjb)

    Hello,

    Sure, there two ways to disable email notifications: with a constant in your wp-config file, or using a filter in your theme’s functions.php file.

    Using constants

    Disable plugins auto-updates email notifications:
    define( 'WP_DISABLE_PLUGINS_AUTO_UPDATE_EMAIL', false );

    Disable themes auto-updates email notifications:
    define( 'WP_DISABLE_THEMES_AUTO_UPDATE_EMAIL', false );

    Using filter hooks

    Disable plugins auto-updates email notifications:

    
    function wporg_disable_plugins_auto_update_email() {
        return false;
    }
    add_filter( 'send_plugins_auto_update_email', 'wporg_disable_plugins_auto_update_email' );
    

    Disable themes auto-updates email notifications:

    
    function wporg_disable_themes_auto_update_email() {
        return false;
    }
    add_filter( 'send_themes_auto_update_email', 'wporg_disable_themes_auto_update_email' );
    

    Cheers,
    Jb

    Plugin Author Jb Audras

    (@audrasjb)

    @nesoor successful and failed auto-updates are merged into only one email, to avoid flooding mailboxes.

    That being said you can hook on the notification emails and send only failed updates, using wp_autoupdates_notifications_email filter.

    Plugin Author Jb Audras

    (@audrasjb)

    Marking this issue as resolved ??

    • This reply was modified 4 years, 5 months ago by Jb Audras.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Question’ is closed to new replies.