Created
January 29, 2013 15:58
-
-
Save mindcube/4665318 to your computer and use it in GitHub Desktop.
A function to display the full path and file name of the loaded WordPress template. For debugging and development.
This file contains hidden or 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
<?php | |
function display_custom_template( $template ) { | |
echo '<!--TEMPLATE:'.$template.'-->'; | |
} | |
add_filter( 'template_include', 'display_custom_template' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment