Χωρίς email μετά από επιτυχείς αυτόματες ενημερώσεις
Το WordPress σταματά να σας στέλνει email κάθε φορά που ένα πρόσθετο, ένα θέμα ή το ίδιο το WordPress ενημερώνεται αυτόματα. Εξακολουθείτε να λαμβάνετε email όταν μια ενημέρωση αποτύχει.
<?php
// Core: keep the "failed" and "critical" emails.
add_filter( 'auto_core_update_send_email', static fn( $send, $type ) => in_array( $type, array( 'fail', 'critical' ), true ) ? $send : false, 10, 2 );
// Plugins and themes: only send when something failed.
$only_failures = static function ( $send, $results ) {
foreach ( (array) $results as $result ) {
if ( empty( $result->result ) || is_wp_error( $result->result ) ) {
return $send;
}
}
return false;
};
add_filter( 'auto_plugin_update_send_email', $only_failures, 10, 2 );
add_filter( 'auto_theme_update_send_email', $only_failures, 10, 2 );
Σε αυτά τα πακέτα
- Απενεργοποιήστε ό,τι δεν χρησιμοποιείτε: Καθένα από αυτά αντικαθιστά ένα μικρό πρόσθετο: χωρίς σχόλια, κλασικός επεξεργαστής, χωρίς ροές, χωρίς αναζήτηση και άλλα.