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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: