Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop email notification to update Wordpress core?

I am getting email notifications asking to update WordPress core. I don't want to update my WordPress and don't want to receive any emails regarding it.

I have searched the internet but am not sure about any specific plugins or hooks.

Can anyone please guide me in regards to stopping these email prompts to update WordPress?

Thank you.

like image 736
Ash Patel Avatar asked May 18 '15 09:05

Ash Patel


People also ask

How do I disable WordPress auto update core?

To turn off automatic updates for WordPress core, you just have to add the following code to your wp-config. php file: define( 'WP_AUTO_UPDATE_CORE', false );

How do I disable confirmation email for new users in WordPress?

Unchecking the option for “New user notification to admin” will disable the email you get when new users sign up on your WordPress site.


1 Answers

To disable the Automatic updates in functions.php:

define( 'AUTOMATIC_UPDATER_DISABLED', true );

If you want just the email to be turned off, use the below:

You can set the status to false for auto_core_update_send_email. Below code goes in functions.php

// Disable update emails
add_filter( 'auto_core_update_send_email', '__return_false' );
like image 93
m4n0 Avatar answered Sep 22 '22 03:09

m4n0