Check if a template is in use

This snippet is collected from a plugin, to check if the theme folder has a xyz.php file, if not, then the xyz.php from the plugin is loaded.

 

Leave a Reply

Your email address will not be published. Required fields are marked *