auto_theme_update_send_email

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

Paramètres

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

Utilisation

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

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

Actualités

Chargement des actualités...