get_the_title_rss

Retrieve the current post title for the feed.

Description

(string) get_the_title_rss(); 

Returns (string)

Current post title.


Usage

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

Defined (1)

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

/wp-includes/feed.php  
  1. function get_the_title_rss() { 
  2. $title = get_the_title(); 
  3.  
  4. /** 
  5. * Filters the post title for use in a feed. 
  6. * @since 1.2.0 
  7. * @param string $title The current post title. 
  8. */ 
  9. $title = apply_filters( 'the_title_rss', $title ); 
  10. return $title;