Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Find template serving current page

function show_template() {
    if( is_super_admin() ){
        global $template;
        print_r($template);
    } 
}
add_action('wp_footer', 'show_template');

//displays the current template only for super admins
Comment

PREVIOUS NEXT
Code Example
Php :: wp wc get_available_variations name not slug 
Php :: Uncaught TypeError: call_user_func(): Argument #1 
Php :: laravel add model to polymorphic relationships 
Php :: The app function returns the service container instancel 
Php :: most complicated task ina array in php 
Php :: phpcs unabl 
Php :: Create mocking dependency in unit test Laravel 
Php :: php how to use namespaces 
Php :: null coalesce operator in php (laravel) 
Php :: wcfm filter vendor dashboard widgets 
Php :: if gd is image 
Php :: rebuild joomla menu 
Php :: php default argument 
Php :: php mysqli connect to two databases pdo 
Php :: php hide credit card middle numbers 
Php :: Convert Array Value Session Value To String PHP 
Php :: Code début HTML 
Php :: setUp() must be compatible with IlluminateFoundationTestingTestCase::setUp() 
Php :: Laravel model - CRUD only with records where one column = certain value 
Php :: wordpress ftp functions.php 
Php :: jobs laravel 
Php :: 279.00 to php 
Php :: wordpress disable php update required 
Php :: propel find index 
Php :: phpmailer valid cert 
Php :: eager loading in hasmany belongsto relationship 
Php :: import separate graphql file laravel 
Php :: modal align center yii2 
Php :: basic syntax 
Php :: laravel faker car plate br 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =