[wp-trac] [WordPress Trac] #21342: The admin bar search form is lacking the get_search_form filter

WordPress Trac wp-trac at lists.automattic.com
Sun Jul 22 09:32:35 UTC 2012


#21342: The admin bar search form is lacking the get_search_form filter
-------------------------+----------------------
 Reporter:  Chouby       |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  Toolbar      |     Version:  3.4.1
 Severity:  normal       |  Resolution:  wontfix
 Keywords:               |
-------------------------+----------------------
Changes (by ocean90):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 `get_search_form` is for `get_search_form()` which is reserved for themes
 and not for the toolbar.

 [[BR]]

 If you want to replace the search from you can remove the existing with

 `remove_action( 'admin_bar_menu', 'wp_admin_bar_search_menu', 4 );`

 and then add you can add your own with

 `add_action( 'admin_bar_menu', 'your_custom_callback_function', 4 );`

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21342#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list