Created
September 27, 2021 09:48
-
-
Save DarioBF/e01096ec5e0fa53b5891e606c0ad8703 to your computer and use it in GitHub Desktop.
Which template is WordPress using?
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
add_action('wp_head', 'show_template'); | |
function show_template() { | |
global $template; | |
echo basename($template); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment