allowed_themes

FILTER wp-includes\class-wp-theme.php (ligne 1692) github
Filters the array of themes allowed on the network.

Paramètres

Entrée :
$allowed_themes
Sortie :
@param string[] $allowed_themes An array of theme stylesheet names.

Utilisation

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

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

Actualités

Chargement des actualités...