WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/get search link

Contents

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