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



the_search_query › WordPress Filter Hooks

Since2.3.0
Deprecatedn/a
apply_filters( 'the_search_query', get_search_query( false )
Parameters:
  • (mixed) $search Contents of the search query variable.
    Required: Yes
Defined at:
Codex:

Filters the contents of the search query variable for display.





Source

echo esc_attr( apply_filters( 'the_search_query', get_search_query( false ) ) );