get_wp_title_rss

Retrieve the blog title for the feed title.

Description

(string) get_wp_title_rss( (string) $deprecated = '–' ); 

Returns (string)

The document title.

Parameters (1)

0. $deprecated — Optional. (string) => '–'
The deprecated.

Usage

  1. if ( !function_exists( 'get_wp_title_rss' ) ) { 
  2. require_once ABSPATH . WPINC . '/feed.php'; 
  3.  
  4. // The deprecated. 
  5. $deprecated = '–'; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = get_wp_title_rss($deprecated); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/feed.php  
  1. function get_wp_title_rss( $deprecated = '–' ) { 
  2. if ( '–' !== $deprecated ) { 
  3. /** translators: %s: 'document_title_separator' filter name */ 
  4. _deprecated_argument( __FUNCTION__, '4.4.0', sprintf( __( 'Use the %s filter instead.' ), '<code>document_title_separator</code>' ) ); 
  5.  
  6. /** 
  7. * Filters the blog title for use as the feed title. 
  8. * @since 2.2.0 
  9. * @since 4.4.0 The `$sep` parameter was deprecated and renamed to `$deprecated`. 
  10. * @param string $title The current blog title. 
  11. * @param string $deprecated Unused. 
  12. */