Filters the array of themes allowed on the network. Site is provided as context so that a list of network allowed themes can be filtered further.
self::get_allowed_on_network(
Sortie :
@param string[] $allowed_themes An array of theme stylesheet names. @param int $blog_id ID of the site.
// Modifier la valeur avec le filtre 'network_allowed_themes'
add_filter('network_allowed_themes', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(self::get_allowed_on_network() {
// Modifier la valeur
return self::get_allowed_on_network(;
}
Chargement des actualités...