wp_title_rss() WordPress Function
The wp_title_rss() function is used to display a title for a RSS feed. This function is similar to the wp_title() function, but with a few key differences. One difference is that the wp_title_rss() function allows for a more customized output, including the ability to add a prefix or suffix to the title. Another difference is that the wp_title_rss() function automatically adds RSS feed specific tags to the title, such as
wp_title_rss( string $deprecated = '–' ) #
Display the blog title for display of the feed title.
Parameters
- $deprecated
(string)(Optional)Unused.
Default value: '–'
Source
File: wp-includes/feed.php
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 ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.4.0 | The optional $sep parameter was deprecated and renamed to $deprecated . |
2.2.0 | Introduced. |