install_theme_overwrite_comparison

FILTER wp-admin\includes\class-theme-installer-skin.php (ligne 305) github
Filters the compare table output for overwriting a theme package on upload.

Paramètres

Entrée :
$table, $current_theme_data, $new_theme_data
Sortie :
@param string   $table              The output table with Name, Version, Author, RequiresWP, and RequiresPHP info.
@param WP_Theme $current_theme_data Active theme data.
@param array    $new_theme_data     Array with uploaded theme data.

Utilisation

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

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

Actualités

Chargement des actualités...