add_action( 'page_template', 'fw_reserve_page_template_pending', 99 );
function fw_reserve_page_template_pending( $page_template ){
$page_template = /* My template Path */
return $page_template;
}
This hook of mine work for all page but home page and front page. Any idea for me to make it work it in both home page and front page so that whenever I click on a page or lunch my site it goes to /* My template Path */
front-page.php
orhome.php
in your theme files? In that case, they will take precedence over the template files. Have a look here.. developer.wordpress.org/themes/basics/template-hierarchy