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'];
Also in PHP:
- clear command for cmd
- catch an exception php
- currenturl phpü
- How to show php text
- change header location in php
- exceptions php
- delete in wordpress query
- auto generated password in php
- composer clear cache laravel
- date month php
- activity log spatie
- To print current time which function will use in pphp
- enable reporting php
- display al errros php
- create random_str laravel
- 500 error code laravel
- date method in php
- composer global require laravel/
- check array for duplicates php
- find key in arrray php
- divisible by 2 php output numbers
- fetch today data in php
- creat quik laravel app
- array only get duplicates