[Resolved] [How to] Disable auto-update email notifications for plugins

Home Forums Support [Resolved] [How to] Disable auto-update email notifications for plugins

Home Forums Support [How to] Disable auto-update email notifications for plugins

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1403039
    Lorand

    Hello,

    As of WordPress 5.5, email notifications will be sent after each attempt to auto-update a plugin or theme regardless of outcome (success or failure). If you want to disable email notifications for plugins auto-updates :

    Open the functions.php in your child-theme and add :

    
    // Disable auto-update email notifications for plugins.
    add_filter( 'auto_plugin_update_send_email', '__return_false' );
    

    Reference to : https://make.wordpress.org/core/2020/07/30/controlling-plugin-and-theme-auto-update-email-notifications-and-site-health-infos-in-wp-5-5/

    ๐Ÿ˜‰

    #1403082
    Leo
    Staff
    Customer Support

    Awesome.

    Thanks for sharing!

    #1535193
    Joseph

    I have put the code into my php functions file, without using a child theme (that is too technical for me). Will the code erase itself when the generate press theme is updated?

    #1535234
    Leo
    Staff
    Customer Support

    Will the code erase itself when the generate press theme is updated?

    Yes – it’s a bad idea to edit the function.php from the parent theme.

    Try the Code Snippets plugin method if you don’t want to use a child theme:
    https://docs.generatepress.com/article/adding-php/#code-snippets

    #1536579
    Joseph

    ok thanks, I will delete it.

    #1536630
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.