Revision: 59982
Updated Code
at December 28, 2012 01:40 by bitsculptor
Updated Code
add_action( 'wp_head', 'show_me_the_template' );
function show_me_the_template() {
global $template, $current_user, $wp_admin_bar;
get_currentuserinfo();
/* If you have more than one user deny. Be sure to use your user ID! */
if ( !is_user_logged_in() && $current_user->ID != '1' )
return;
if ( is_admin_bar_showing() )
$wp_admin_bar->add_menu( array(
'parent' => false,
'id' => 'template',
'title' => $template,
'href' => '#'
));
else
print_r( $template );
}
Revision: 59981
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 13, 2012 05:13 by bitsculptor
Initial Code
add_action( 'wp_head', 'show_me_the_template_butthead_hehe' );
function show_me_the_template_butthead_hehe() {
global $template, $current_user, $wp_admin_bar;
get_currentuserinfo();
/* If you have more than one user deny. Be sure to use your user ID! */
if ( !is_user_logged_in() && $current_user->ID != '1' )
return;
if ( is_admin_bar_showing() )
$wp_admin_bar->add_menu( array(
'parent' => false,
'id' => 'template',
'title' => $template,
'href' => '#'
));
else
print_r( $template );
}
Initial URL
Initial Description
This will show you what template you are currently viewing (index.php, page.php)
Initial Title
Template Finder for Wordpress
Initial Tags
wordpress
Initial Language
PHP