Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Template Print Snippet
<?php
add_action('wp_head', 'your_show_template_function');
/**
* show_template function.
*
* @access public
* @return void
*/
function your_show_template_function() {
global $template;
print_r($template);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment