Last active
July 30, 2022 13:40
-
-
Save taricco/86971bbdd50211c0a850cafd0fbe3f7f to your computer and use it in GitHub Desktop.
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
/* Shows entire path */ | |
function wsv_which_template_is_loaded() | |
{ | |
if (is_super_admin()) { | |
global $template; | |
print_r($template); | |
} | |
} | |
add_action('wp_footer', 'wsv_which_template_is_loaded'); | |
/* Shows realtive path */ | |
echo get_post_meta(get_queried_object_id(), '_wp_page_template', true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment