Search
 
SCRIPT & CODE EXAMPLE
 

PHP

display page template using functions.php

function define_current_theme_file( $template ) {
    $GLOBALS['current_theme_template'] = basename($template);

    return $template;
}
add_action('template_include', 'define_current_theme_file', 1000);

# Echo result in header.php
echo $GLOBALS['current_theme_template'];
Comment

PREVIOUS NEXT
Code Example
Php :: How to append json array using jq+shell in a loop 
Php :: Yii2 Dynamic Relational, Eager loading 
Php :: php google authenauthenticator 
Php :: cakephp get present name 
Php :: upload video file using ajax php 
Php :: validation ignored rules 
Php :: Laravel route returning error 404 when attempt is made to pass value to controller function 
Php :: the_fiel 
Php :: php endif endforeach endwhile 
Php :: if Offset php 
Php :: select next occurrence phpstorm 
Php :: get categories only assigned to post Wordpress 
Php :: Trying to get property 
Php :: search php array 
Php :: php code obfuscator 
Php :: push element in array php 
Php :: php boolean 
Php :: laravel authentication tutorial 8 
Php :: remove exact characters from string using php 
Php :: how did peppa pig die 
Php :: get all weeks in month php 
Php :: change php version 
Java :: camera permission android 
Java :: java sleep in code 
Java :: javafx get screen size 
Java :: spring boot security maven 
Java :: random object of array java 
Java :: How to see java versions mac 
Java :: printf java boolean 
Java :: spring annotations xml configuration 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =