Skip to content

Instantly share code, notes, and snippets.

@alexpos
Created May 31, 2013 07:56
Show Gist options
  • Save alexpos/5683508 to your computer and use it in GitHub Desktop.
Save alexpos/5683508 to your computer and use it in GitHub Desktop.

Revisions

  1. alexpos created this gist May 31, 2013.
    9 changes: 9 additions & 0 deletions themedebug
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    function themedebug() {
    global $template; $var=basename($template);
    ?>
    <script type="text/javascript">
    console.log(<?php echo "\"debug: ".$var."\""; ?>);
    </script>
    <?php
    }
    add_action( 'wp_footer', 'themedebug' );