Filters the compare table output for overwriting a theme package on upload.
$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.
// 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;
}
Chargement des actualités...