Created
May 31, 2013 07:56
-
-
Save alexpos/5683508 to your computer and use it in GitHub Desktop.
template in js console
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
function themedebug() { | |
global $template; $var=basename($template); | |
?> | |
<script type="text/javascript"> | |
console.log(<?php echo "\"debug: ".$var."\""; ?>); | |
</script> | |
<?php | |
} | |
add_action( 'wp_footer', 'themedebug' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment