Created
January 25, 2013 15:19
-
-
Save mindcube/4635168 to your computer and use it in GitHub Desktop.
PHP: Insert WordPress template file name and path
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
// For debugging - show template file | |
add_action('wp_head', 'show_template'); | |
function show_template() { | |
global $template; | |
?><!-- TEMPLATE: <?php print_r($template);?>--><?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment