stylesheet_directory

FILTER wp-includes\theme.php (ligne 215) github
Filters the stylesheet directory path for the active theme.

Paramètres

Entrée :
$stylesheet_dir, $stylesheet, $theme_root
Sortie :
@param string $stylesheet_dir Absolute path to the active theme.
@param string $stylesheet     Directory name of the active theme.
@param string $theme_root     Absolute path to themes directory.

Utilisation

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

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

Actualités

Chargement des actualités...