Created
October 28, 2019 10:01
-
-
Save asha23/eeec106bd641e34ec26ddd2263992773 to your computer and use it in GitHub Desktop.
Show which WordPress template is loaded
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
function ash_which_template_is_loaded() { | |
if ( is_super_admin() ) { | |
global $template; | |
print_r( $template ); | |
} | |
} | |
add_action( 'wp_footer', 'ash_which_template_is_loaded' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment