auto_plugin_update_send_email

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

Paramètres

Entrée :
true, $update_results['plugin']
Sortie :
@param bool  $enabled        True if plugin update notifications are enabled, false otherwise.
@param array $update_results The results of plugins update tasks.

Utilisation

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

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

Actualités

Chargement des actualités...