wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
get_stylesheet_directory › WordPress Function
Seit1.5.0
Veraltetn/v
› get_stylesheet_directory ( Keine Parameter )
Gibt zurück: |
|
Definiert in: |
|
Codex: | |
Changelog: |
|
Retrieves stylesheet directory path for the active theme.
Ähnliche Funktionen: get_stylesheet_directory_uri, get_stylesheet_uri, get_template_directory, get_stylesheet, register_theme_directory
Quellcode
function get_stylesheet_directory() { $stylesheet = get_stylesheet(); $theme_root = get_theme_root( $stylesheet ); $stylesheet_dir = "$theme_root/$stylesheet"; /** * Filters the stylesheet directory path for the active theme. * * @since 1.5.0 * * @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. */ return apply_filters( 'stylesheet_directory', $stylesheet_dir, $stylesheet, $theme_root ); }