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 ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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