Add searchform partial and function to replace (and maintain) default WordPress functionality
This commit is contained in:
@@ -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');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user