I’ve switched to working with Sage 10 for the most recent project and although I am getting more and more familiar with the new setup and things mostly work fine I’ve come across one issue I am not able to wrap my head around and would appreciate your help with:
With Sage 9 I could filter the get_search_form calls to return a custom blade template via
/**
* Point WP to Sage's custom search form template
*/
add_filter('get_search_form', function() {
return \App\template('partials.searchform');
});
whilst I am not able to do so within Sage 10 via
/**
* Point WP to Sage's custom search form template
*/
add_filter('get_search_form', function() {
return \Roots\view('dummy')->render();
});
The result here is that the filter ignores the custom template and just renders the default WP search form.
Directly modifying and passing the form markup like proposed in the Codex docs (but make sure to add $args as a second param, the filter changed since 5.5.0) works as a temporary workaround but I’d like for the form markup to live in a partial preferably…