network_allowed_themes

FILTER wp-includes\class-wp-theme.php (ligne 1668) github
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.

Paramètres

Entrée :
self::get_allowed_on_network(
Sortie :
@param string[] $allowed_themes An array of theme stylesheet names.
@param int      $blog_id        ID of the site.

Utilisation

// 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(;
}

Actualités

Chargement des actualités...