get_wp_title_rss

Advertisement

Summery Summery

Retrieve the blog title for the feed title.

Syntax Syntax

get_wp_title_rss( string $deprecated = '–' )

Parameters Parameters

$deprecated

(Optional) Unused..

Default value: '–'

Return Return

(string) The document title.

Source Source

File: wp-includes/feed.php

 * @param string $deprecated Unused..
 * @return string The document title.
 */
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.

Advertisement

Changelog Changelog

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

Advertisement

Leave a Reply