wpseek.com
A WordPress-centric search engine for devs and theme authors



pre_get_search_form › WordPress Action Hooks

Since5.5.0
Deprecatedn/a
do_action( 'pre_get_search_form', $args )
Parameters:
  • (array) $args The array of arguments for building the search form. See get_search_form() for information on accepted arguments.
    Required: Yes
Defined at:
Codex:

Fires before the search form is retrieved, at the start of get_search_form().





Source

do_action( 'pre_get_search_form', $args );