This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
WordPressのテーマにおいて、テンプレート階層に基づきどのテンプレートファイルが使われているか書き出すコード。 | |
ただし、header.php や get_template_part などでインクルードされているファイルを除く。 | |
*/ | |
add_action('wp_footer', 'view_template_files'); | |
if ( !function_exists( 'view_template_files' ) ): | |
function view_template_files() { | |
if ( defined('WP_DEBUG') && WP_DEBUG ) { | |
global $template; |