Wrapper Templates Filter
Allows manual control over the base and sidebar templates being used.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user