the_search_query WordPress Filter Hook

The "the_search_query" hook is a WordPress core hook that is called when a search query is being processed. It is used to modify the search query before it is passed to the search engine.

apply_filters( 'the_search_query', mixed $search ) #

Filters the contents of the search query variable for display.


Parameters

$search

(mixed)Contents of the search query variable.


Top ↑

Source

File: wp-includes/general-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More