Created
February 1, 2020 11:22
-
-
Save gvgvgvijayan/a74a22f1f20aa5039b0f35d714c41cc3 to your computer and use it in GitHub Desktop.
To detect rendered template in WordPress
This file contains 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
<?php | |
add_action('wp_head', function () { | |
global $template; | |
echo $template; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment