get_wp_title_rss

Definition:
function get_wp_title_rss($sep = '»') {}

Retrieve the blog title for the feed title.

Parameters

  • string $sep: Optional.How to separate the title. See wp_title() for more info.

Return values

returns:Error message on failure or blog title on success.

Defined filters

  • get_wp_title_rss
    apply_filters('get_wp_title_rss', $title)

Source code

function get_wp_title_rss($sep = '»') {

	$title = wp_title($sep, false);

	if ( is_wp_error( $title ) )

		return $title->get_error_message();

	$title = apply_filters('get_wp_title_rss', $title);

	return $title;

}

1911

No comments yet... Be the first to leave a reply!

Leave a comment