send_core_update_notification_email

FILTER wp-admin\includes\class-wp-automatic-updater.php (ligne 345) github
Filters whether to notify the site administrator of a new core update. By default, administrators are notified when the update offer received from WordPress.org sets a particular flag. This allows some discretion in if and when to notify. This filter is only evaluated once per release. If the same email address was already notified of the same new version, WordPress won't repeatedly email the administrator. This filter is also used on about.php to check if a plugin has disabled these notifications.

Paramètres

Entrée :
$notify, $item
Sortie :
@param bool   $notify Whether the site administrator is notified.
@param object $item   The update offer.

Utilisation

// Modifier la valeur avec le filtre 'send_core_update_notification_email'
add_filter('send_core_update_notification_email', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($notify) {
    // Modifier la valeur
    return $notify;
}

Actualités

Chargement des actualités...