apply_filters( ‘the_search_query’, mixed $search )

In this article

Filters the contents of the search query variable for display.

Parameters

$searchmixed
Contents of the search query variable.

Source

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

Changelog

VersionDescription
2.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.