From f006dd20870d6a579c13969216d28f845ad173dd Mon Sep 17 00:00:00 2001 From: Foxaii Date: Sat, 11 May 2013 18:53:11 +0200 Subject: [PATCH] Wrapper Templates Filter Allows manual control over the base and sidebar templates being used. --- lib/utils.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/utils.php b/lib/utils.php index 9a86123..1a928d8 100644 --- a/lib/utils.php +++ b/lib/utils.php @@ -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); } }