stylesheet_uri

FILTER wp-includes\theme.php (ligne 263) github
Filters the URI of the active theme stylesheet.

Paramètres

Entrée :
$stylesheet_uri, $stylesheet_dir_uri
Sortie :
@param string $stylesheet_uri     Stylesheet URI for the active theme/child theme.
@param string $stylesheet_dir_uri Stylesheet directory URI for the active theme/child theme.

Utilisation

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

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

Actualités

Chargement des actualités...