wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes
get_stylesheet_directory_uri › WordPress Function
Depuis1.5.0
Dépréciéen/a
› get_stylesheet_directory_uri ( Pas de paramètres )
Retourne: |
|
Défini(e) dans: |
|
Codex: |
Retrieves stylesheet directory URI for the active theme.
Fonctions en relation: get_stylesheet_directory, get_stylesheet_uri, get_template_directory_uri, get_locale_stylesheet_uri, get_template_directory
Source
function get_stylesheet_directory_uri() { $stylesheet = str_replace( '%2F', '/', rawurlencode( get_stylesheet() ) ); $theme_root_uri = get_theme_root_uri( $stylesheet ); $stylesheet_dir_uri = "$theme_root_uri/$stylesheet"; /** * Filters the stylesheet directory URI. * * @since 1.5.0 * * @param string $stylesheet_dir_uri Stylesheet directory URI. * @param string $stylesheet Name of the activated theme's directory. * @param string $theme_root_uri Themes root URI. */ return apply_filters( 'stylesheet_directory_uri', $stylesheet_dir_uri, $stylesheet, $theme_root_uri ); }