W3cubDocs

/WordPress

apply_filters( ‘search_link’, string $link, string $search )

Filters the search permalink.

Parameters

$linkstring
Search permalink.
$searchstring
The URL-encoded search term.

Source

return apply_filters( 'search_link', $link, $search );

Changelog

Version Description
3.0.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/search_link