[wp-trac] [WordPress Trac] #32528: Create a new search_form_content hook in get_search_form()
WordPress Trac
noreply at wordpress.org
Wed Jun 17 06:40:48 UTC 2015
#32528: Create a new search_form_content hook in get_search_form()
-----------------------------+---------------------------------
Reporter: charlestonsw | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses: ui, administration
-----------------------------+---------------------------------
Comment (by dd32):
I'm not sure this filter is a good idea myself.
Themes can specify an alternate `searchform.php` template for the search
form already, which the proposed filter will skip.
Additionally, there's a `get_search_form` filter which runs on the entire
HTML chunk from both the Theme and the html/html5 form chunks.
Introducing a filter to make it easier to insert search form fields, which
doesn't get used in a chunk of cases doesn't seem useful to me, although I
can see that inserting extra fields via the `get_search_form` filter is
painful..
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32528#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list