You should be using the template_include
filter hook
This filter hook is executed immediately before WordPress includes the predetermined template file.
This can be used to override WordPress’s default template behavior.
You should be using the template_include
filter hook
This filter hook is executed immediately before WordPress includes the predetermined template file.
This can be used to override WordPress’s default template behavior.