Checking for the existence of an active page template
-
Wondering how one would go about checking for the existence of an active page template. Not “am I in a page template”. I know that
is_page_template('template-name.php')
does that. I want to check iftemplate-name.php
exists inwp_postmeta
and run some code atinit
if does.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Checking for the existence of an active page template’ is closed to new replies.