fbf6f891 by Jeff Balicki

disable emails for updates

1 parent 89767559
...@@ -8,12 +8,21 @@ ...@@ -8,12 +8,21 @@
8 // Exit if accessed directly. 8 // Exit if accessed directly.
9 defined( 'ABSPATH' ) || exit; 9 defined( 'ABSPATH' ) || exit;
10 10
11 add_filter( 'auto_core_update_send_email', '__return_false' ); 11
12 add_filter( 'auto_update_plugin', '__return_false' ); 12 add_filter( 'auto_update_plugin', '__return_false' );
13 add_filter('pre_site_transient_update_plugins','remove_core_updates'); 13 add_filter('pre_site_transient_update_plugins','remove_core_updates');
14 add_filter( 'auto_update_theme', '__return_false' ); 14 add_filter( 'auto_update_theme', '__return_false' );
15 add_filter('pre_site_transient_update_themes','remove_core_updates'); 15 add_filter('pre_site_transient_update_themes','remove_core_updates');
16 16
17 add_filter( 'auto_core_update_send_email', 'smartwp_disable_core_update_emails', 10, 4 );
18 function smartwp_disable_core_update_emails( $send, $type, $core_update, $result ) {
19 if ( !empty($type) && $type == 'success' ) {
20 return false;
21 }
22
23 return true;
24 }
25
17 26
18 /** 27 /**
19 * Removes the parent themes stylesheet and scripts from inc/enqueue.php 28 * Removes the parent themes stylesheet and scripts from inc/enqueue.php
......