Wrapper Templates Filter

Allows manual control over the base and sidebar templates being used.
This commit is contained in:
Foxaii
2013-05-11 18:53:11 +02:00
parent 9ac6bc698e
commit f006dd2087

View File

@@ -34,6 +34,7 @@ class Roots_Wrapping {
array_unshift($templates, sprintf('base-%s.php', self::$base));
}
$templates = apply_filters('roots_wrapping_base', $templates);
return locate_template($templates);
}
@@ -44,6 +45,7 @@ class Roots_Wrapping {
array_unshift($templates, sprintf('templates/sidebar-%s.php', self::$base));
}
$templates = apply_filters('roots_wrapping_sidebar', $templates);
return locate_template($templates);
}
}