Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function tdc_template_include($template) {
- $template_file = wp_basename($template);
- $file_path = STYLESHEETPATH . '/' . $template_file;
- if (is_child_theme() && file_exists($file_path)) {
- return $file_path;
- } else {
- $file_path = TDC_PATH_LEGACY . '/' . $template_file;
- if (file_exists($file_path)) {
- return $file_path;
- }
- }
- return $template;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement