search_link WordPress Filter Hook

The search_link WordPress hook allows you to modify the URL of the search results page. This can be useful if you want to change the way the search results are displayed, or if you want to use a different search engine.

apply_filters( 'search_link', string $link, string $search ) #

Filters the search permalink.


Parameters

$link

(string)Search permalink.

$search

(string)The URL-encoded search term.


Top ↑

Source

File: wp-includes/link-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.0.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