apply_filters( 'search_link', string $link, string $search )
- Since
- 3.0.0
Filters the search permalink.
Parameters
$linkstring- Search permalink.
$searchstring- The URL-encoded search term.
Fired at · 1
wp-includes/link-template.php:1212get_search_link()
Source
View on Trac ↗View on GitHub ↗
1206 *1207 * @since 3.0.01208 *1209 * @param string $link Search permalink.1210 * @param string $search The URL-encoded search term.1211 */1212 return apply_filters( 'search_link', $link, $search );1213}1214 1215/**1216 * Retrieves the permalink for the search results feed.1217 *1218 * @since 2.5.0
History
Introduced in 3.0.0. Unchanged from 6.7.7 through 7.1.0.
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.0.4 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.