pre_get_search_form action-hook . WP 3.6.0
Fires before the search form is retrieved, at the start of get_search_form().
Usage
add_action( 'pre_get_search_form', 'action_function_name_5398' ); function action_function_name_5398( $args ){ // action... }
- $args(array)
- The array of arguments for building the search form.
Changelog
Since 3.6.0 | Introduced. |
Since 2.7.0 | as 'get_search_form' action. |
Since 5.5.0 | The $args parameter was added. |
Where the hook is called
wp-includes/general-template.php 251
do_action( 'pre_get_search_form', $args );