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:1213get_search_link()
Source
View on Trac ↗View on GitHub ↗
1207 *1208 * @since 3.0.01209 *1210 * @param string $link Search permalink.1211 * @param string $search The URL-encoded search term.1212 */1213 return apply_filters( 'search_link', $link, $search );1214}1215 1216/**1217 * Retrieves the permalink for the search results feed.1218 *1219 * @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 6.7.7 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.