wp_title_rss( string $deprecated = ‘–’ )

In this article

Displays the blog title for display of the feed title.

Parameters

$deprecatedstringoptional
Unused.

Default:'–'

Source

function 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 display of the feed title.
	 *
	 * @since 2.2.0
	 * @since 4.4.0 The `$sep` parameter was deprecated and renamed to `$deprecated`.
	 *
	 * @see get_wp_title_rss()
	 *
	 * @param string $wp_title_rss The current blog title.
	 * @param string $deprecated   Unused.
	 */
	echo apply_filters( 'wp_title_rss', get_wp_title_rss(), $deprecated );
}

Hooks

apply_filters( ‘wp_title_rss’, string $wp_title_rss, string $deprecated )

Filters the blog title for display of the feed title.

Changelog

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

User Contributed Notes

You must log in before being able to contribute a note or feedback.