Advertisement
Guest User

Show WP template in-use to admin

a guest
Jun 16th, 2014
420
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.21 KB | None | 0 0
  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.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement