get_search_link

SummerySummery

Retrieves the permalink for a search.

Syntax

get_search_link( string $query = '' )

ParametersParameters

$query

(string) (Optional) The query string to use. If empty the current query is used.

Default value: ''

ReturnReturn

(string) The search permalink.

SourceSource

File: wp-includes/link-template.php


			

ChangelogChangelog

Changelog
Version Description
3.0.0 Introduced.
Scroll to Top