fbf6f891 by Jeff Balicki

disable emails for updates

1 parent 89767559
......@@ -8,12 +8,21 @@
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
add_filter( 'auto_core_update_send_email', '__return_false' );
add_filter( 'auto_update_plugin', '__return_false' );
add_filter('pre_site_transient_update_plugins','remove_core_updates');
add_filter( 'auto_update_theme', '__return_false' );
add_filter('pre_site_transient_update_themes','remove_core_updates');
add_filter( 'auto_core_update_send_email', 'smartwp_disable_core_update_emails', 10, 4 );
function smartwp_disable_core_update_emails( $send, $type, $core_update, $result ) {
if ( !empty($type) && $type == 'success' ) {
return false;
}
return true;
}
/**
* Removes the parent themes stylesheet and scripts from inc/enqueue.php
......