Created
September 7, 2020 08:02
-
-
Save matthacksteiner/41f5fbd17f61b9a4d1269455cefce5a9 to your computer and use it in GitHub Desktop.
Wordpress - display current used template page to super admin
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
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