adapazarı escort sakarya escort akyazı escort anal escort arifiye escort erenler escort ferizli escort geyve escort hendek escort karasu escort pamukova escort sapanca escort serdivan escort söğütlü escort taraklı escort sakarya escort sakarya escort
serdivan escort sakarya escort sakarya escort sakarya escort sakarya escort sakarya escort ankara travesti webmaster forum hd porn nevşehir escort
ankara escort bayan ankara escort bayan ankara escort
current template file name Archives - Wpdevcodes
sakarya escort sakarya escort sakarya escort bayan sakarya escort bayan serdivan escort kayseri escort webmaster forum

Tag Archives: current template file name

Is there any idea to get current template file name? Yes! we can easily get the template file name. In that case bascically we are adding plugin in the WordPress back end. In that article we will show you how to get this done without plugin. It’s a very simple code.

You need to just put the below code into the function.php file. After add this code you just logn in your admin panel with the wp-admin credential. Once logged in go to the front end. You can see the current template file name on the WordPress admin bar. Hope, this article will help you get this done without plugin.

//display current template file name
add_action( 'admin_bar_menu', function( \WP_Admin_Bar $bar )
{
global $template;
$tem = basename($template);
$bar->add_menu( array(
'id' => 'wpse',
'parent' => null,
'group' => null,
'title' => __( $tem, 'textdomain' ),
) );
} );

To get more information visit our Blog.