Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add the function to print the current template file being used to the…

… footer.
  • Loading branch information...
commit e96e2a852d1fb46d31e835bdd86e0503787dee56 1 parent 4fbb9e8
@saltcod authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 functions.php
View
13 functions.php
@@ -46,6 +46,19 @@ function add_body_class( $classes ){
+
+
+/* Print out the current template file to the footer */
+add_action('wp_footer', 'show_template');
+function show_template() {
+ global $template;
+ print_r($template);
+}
+
+
+
+
+
if ( ! function_exists( 'toolbox_setup' ) ):
/**
* Sets up theme defaults and registers support for various WordPress features.
Please sign in to comment.
Something went wrong with that request. Please try again.