====== Vypnutí e-mailových notifikací ====== Už mě začaly štvát neustálé mailové notifikace o tom, že byla nainstalována automatická aktualizace plugiinu nebo nový Wordpress. Pokud se jedná o jeden web, tak to možná člověku tak nepřijde, ale desítky mailů týdně z různých webů už jsou opravdu otravné. Vypnutí notifikací se provádí editací child-theme a souboru **functions.php** a přidání následujícího kódu: /** * Disable Auto Update Notification Emails for Core Updates * https://www.wpbeginner.com/wp-tutorials/how-to-disable-automatic-update-email-notification-in-wordpress/ */ add_filter( 'auto_core_update_send_email', 'wpb_stop_auto_update_emails', 10, 4 ); function wpb_stop_update_emails( $send, $type, $core_update, $result ) { if ( ! empty( $type ) && $type == 'success' ) { return false; } return true; } /** * Disable Auto Update Notification Emails for Plugins */ add_filter( 'auto_plugin_update_send_email', '__return_false' ); /** * Disable Auto Update Notification Emails for Themes */ add_filter( 'auto_theme_update_send_email', '__return_false' ); /** * Disable nightly builds and development updates * https://www.wpbeginner.com/wp-tutorials/how-to-enable-automatic-updates-in-wordpress-for-major-releases/ */ add_filter( 'allow_dev_auto_core_updates', '__return_false' );