Skip to content

Instantly share code, notes, and snippets.

@mindcube
Created January 29, 2013 15:58
Show Gist options
  • Save mindcube/4665318 to your computer and use it in GitHub Desktop.
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.
<?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