Filters the update response for a given theme hostname. The dynamic portion of the hook name, `$hostname`, refers to the hostname of the URI specified in the `Update URI` header field.
false, $theme_data, $theme_stylesheet, $locales
Sortie :
@param array|false $update {
@param array $theme_data Theme headers.
@param string $theme_stylesheet Theme stylesheet.
@param string[] $locales Installed locales to look up translations for.
// Modifier la valeur avec le filtre 'update_themes_{$hostname}'
add_filter('update_themes_{$hostname}', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(false) {
// Modifier la valeur
return false;
}
Chargement des actualités...