get_wp_title_rss() WordPress Function

The get_wp_title_rss() function is used to display the title of a WordPress RSS feed. This function is used within the WordPress loop.

get_wp_title_rss( string $deprecated = '–' ) #

Retrieve the blog title for the feed title.


Parameters

$deprecated

(string)(Optional)Unused..

Default value: '–'


Top ↑

Return

(string) The document title.


Top ↑

Source

File: wp-includes/feed.php

function get_wp_title_rss( $deprecated = '–' ) {
	if ( '–' !== $deprecated ) {
		/* translators: %s: 'document_title_separator' filter name. */
		_deprecated_argument( __FUNCTION__, '4.4.0', sprintf( __( 'Use the %s filter instead.' ), '<code>document_title_separator</code>' ) );
	}

	/**
	 * Filters the blog title for use as the feed title.
	 *
	 * @since 2.2.0
	 * @since 4.4.0 The `$sep` parameter was deprecated and renamed to `$deprecated`.
	 *
	 * @param string $title      The current blog title.
	 * @param string $deprecated Unused.
	 */
	return apply_filters( 'get_wp_title_rss', wp_get_document_title(), $deprecated );
}


Top ↑

Changelog

Changelog
VersionDescription
4.4.0The optional $sep parameter was deprecated and renamed to $deprecated.
2.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.