SHARE
TWEET

Show WP template in-use to admin

a guest Jun 16th, 2014 292 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   add_action('wp_head', 'show_template');
  2.  
  3.   function show_template() {
  4.   global $template;
  5.   global $current_user;
  6.   get_currentuserinfo();
  7.   if ($current_user->user_level == 10 ) print_r($template);
  8.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top