Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_stylesheet_directory [ WordPress Function ]

get_stylesheet_directory ( No parameters )
Uses:
Returns:
  • (string) Path to current theme directory.
Defined at:



Retrieve stylesheet directory path for current theme.

Source


<?php
function get_stylesheet_directory() {
    
$stylesheet get_stylesheet();
    
$theme_root get_theme_root$stylesheet );
    
$stylesheet_dir "$theme_root/$stylesheet";

    return 
apply_filters'stylesheet_directory'$stylesheet_dir$stylesheet$theme_root );
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics