Add searchform partial and function to replace (and maintain) default WordPress functionality

This commit is contained in:
MWDelaney
2018-08-05 12:07:32 -04:00
parent a9312c0633
commit 1ccc2eed76
2 changed files with 14 additions and 0 deletions

View File

@@ -68,3 +68,10 @@ add_filter('comments_template', function ($comments_template) {
);
return template_path(locate_template(["views/{$comments_template}", $comments_template]) ?: $comments_template);
}, 100);
/**
* Render WordPress searchform using Blade
*/
add_filter('get_search_form', function () {
return template('partials.searchform');
});