wpseek.com
A WordPress-centric search engine for devs and theme authors



get_the_title_rss › WordPress Function

Since2.0.0
Deprecatedn/a
get_the_title_rss ( $post = 0 )
Parameters:
  • (int|WP_Post) $post Optional. Post ID or WP_Post object. Default is global $post.
    Required: No
    Default:
Returns:
  • (string) Current post title.
Defined at:
Codex:
Change Log:
  • 6.6.0

Retrieves the current post title for the feed.



Source

function get_the_title_rss( $post = 0 ) {
	$title = get_the_title( $post );

	/**
	 * Filters the post title for use in a feed.
	 *
	 * @since 1.2.0
	 *
	 * @param string $title The current post title.
	 */
	return apply_filters( 'the_title_rss', $title );
}