auto_core_update_send_email

FILTER wp-admin\includes\class-wp-automatic-updater.php (ligne 935) github
Filters whether to send an email following an automatic background core update.

Paramètres

Entrée :
true, $type, $core_update, $result
Sortie :
@param bool   $send        Whether to send the email. Default true.
@param string $type        The type of email to send. Can be one of
@param object $core_update The update offer that was attempted.
@param mixed  $result      The result for the core update. Can be WP_Error.

Utilisation

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

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

Actualités

Chargement des actualités...