Close #992 - Move some Roots features into Soil
This commit is contained in:
@@ -2,13 +2,15 @@
|
||||
/**
|
||||
* Utility functions
|
||||
*/
|
||||
function add_filters($tags, $function) {
|
||||
foreach($tags as $tag) {
|
||||
add_filter($tag, $function);
|
||||
}
|
||||
}
|
||||
|
||||
function is_element_empty($element) {
|
||||
$element = trim($element);
|
||||
return empty($element) ? false : true;
|
||||
}
|
||||
|
||||
// Tell WordPress to use searchform.php from the templates/ directory
|
||||
function roots_get_search_form($form) {
|
||||
$form = '';
|
||||
locate_template('/templates/searchform.php', true, false);
|
||||
return $form;
|
||||
}
|
||||
add_filter('get_search_form', 'roots_get_search_form');
|
||||
|
||||
Reference in New Issue
Block a user