Archived topic
[How to] Disable auto-update email notifications for plugins
5 replies · Started by Lorand on August 14, 2020
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' );
;)
Awesome.
Thanks for sharing!
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?
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
ok thanks, I will delete it.
No problem :)