WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/get search link

Description

Retrieve permalink for search.

Usage

<?php get_search_link$query ); ?>

Parameters

$query
(string) (optional) Optional. The query string to use. If empty the current query is used.
Default: empty string

Return Values

(string) 

Change Log

Since: 3.0

Source File

get_search_link() is located in wp-includes/link-template.php