get_search_feed_link

Advertisement

Summery Summery

Retrieves the permalink for the search results feed.

Syntax Syntax

get_search_feed_link( string $search_query = '', string $feed = '' )

Parameters Parameters

$search_query

(string) (Optional) Search query.

Default value: ''

$feed

(string) (Optional) Feed type. Possible values include 'rss2', 'atom'. Default is the value of get_default_feed().

Default value: ''

Return Return

(string) The search results feed permalink.

Source Source

File: wp-includes/link-template.php


			

Advertisement

Changelog Changelog

Changelog
Version Description
2.5.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.