Created
May 26, 2023 13:34
-
-
Save kbcarte/428c2236f411ee3788fd1f0876a4af11 to your computer and use it in GitHub Desktop.
Show which php template WordPress is using, shows in the footer
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
<?php | |
// add to functions.php | |
// Yoink: https://wordpress.stackexchange.com/a/130921 | |
function show_template() { | |
if( is_super_admin() ){ | |
global $template; | |
print_r($template); | |
} | |
} | |
add_action('wp_footer', 'show_template'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment