Switch language

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




get_template_directory [ WordPress Function ]

get_template_directory ( No parameters )
Uses:
Returns:
  • (string) Template directory path.
Defined at:



Retrieve current theme directory.

Source


<?php
function get_template_directory() {
    
$template get_template();
    
$theme_root get_theme_root$template );
    
$template_dir "$theme_root/$template";

    return 
apply_filters'template_directory'$template_dir$template$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