Title: get_wp_title_rss
Published: April 25, 2014
Last modified: February 24, 2026

---

# get_wp_title_rss( string $deprecated ): string

## In this article

 * [Parameters](https://developer.wordpress.org/reference/functions/get_wp_title_rss/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/functions/get_wp_title_rss/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/functions/get_wp_title_rss/?output_format=md#source)
 * [Hooks](https://developer.wordpress.org/reference/functions/get_wp_title_rss/?output_format=md#hooks)
 * [Related](https://developer.wordpress.org/reference/functions/get_wp_title_rss/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/get_wp_title_rss/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/get_wp_title_rss/?output_format=md#wp--skip-link--target)

Retrieves the blog title for the feed title.

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/get_wp_title_rss/?output_format=md#parameters)󠁿

 `$deprecated`stringrequired

Unused.

## 󠀁[Return](https://developer.wordpress.org/reference/functions/get_wp_title_rss/?output_format=md#return)󠁿

 string The document title.

## 󠀁[Source](https://developer.wordpress.org/reference/functions/get_wp_title_rss/?output_format=md#source)󠁿

    ```php
    function get_wp_title_rss( $deprecated = '&#8211;' ) {
    	if ( '&#8211;' !== $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 );
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/feed.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/feed.php#L103)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/feed.php#L103-L119)

## 󠀁[Hooks](https://developer.wordpress.org/reference/functions/get_wp_title_rss/?output_format=md#hooks)󠁿

 [apply_filters( ‘get_wp_title_rss’, string $title, string $deprecated )](https://developer.wordpress.org/reference/hooks/get_wp_title_rss/)

Filters the blog title for use as the feed title.

## 󠀁[Related](https://developer.wordpress.org/reference/functions/get_wp_title_rss/?output_format=md#related)󠁿

| Uses | Description | 
| [wp_get_document_title()](https://developer.wordpress.org/reference/functions/wp_get_document_title/)`wp-includes/general-template.php` |

Returns document title for the current page.

  | 
| [__()](https://developer.wordpress.org/reference/functions/__/)`wp-includes/l10n.php` |

Retrieves the translation of $text.

  | 
| [_deprecated_argument()](https://developer.wordpress.org/reference/functions/_deprecated_argument/)`wp-includes/functions.php` |

Marks a function argument as deprecated and inform when it has been used.

  | 
| [apply_filters()](https://developer.wordpress.org/reference/functions/apply_filters/)`wp-includes/plugin.php` |

Calls the callback functions that have been added to a filter hook.

  |

[Show 2 more](https://developer.wordpress.org/reference/functions/get_wp_title_rss/?output_format=md#)
[Show less](https://developer.wordpress.org/reference/functions/get_wp_title_rss/?output_format=md#)

| Used by | Description | 
| [rss2_site_icon()](https://developer.wordpress.org/reference/functions/rss2_site_icon/)`wp-includes/feed.php` |

Displays Site Icon in RSS2.

  | 
| [wp_title_rss()](https://developer.wordpress.org/reference/functions/wp_title_rss/)`wp-includes/feed.php` |

Displays the blog title for display of the feed title.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/get_wp_title_rss/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.4.0](https://developer.wordpress.org/reference/since/4.4.0/) | The optional `$sep` parameter was deprecated and renamed to `$deprecated`. | 
| [2.2.0](https://developer.wordpress.org/reference/since/2.2.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fget_wp_title_rss%2F)
before being able to contribute a note or feedback.