get_wp_title_rss

函数


get_wp_title_rss ( $deprecated = '–' )
参数
  • (string)
    $deprecated
    Unused.
    Required:
    Default: ‘–’
返回值
  • (string) The document title.
定义位置
  • wp-includes/feed.php
    , line 103
引入
2.2.0
弃用

检索feed标题的博客标题。

function get_wp_title_rss( $deprecated = '–' ) {
	if ( '–' !== $deprecated ) {
		/* translators: %s: 'document_title_separator' filter name. */
		_deprecated_argument( __FUNCTION__, '4.4.0', sprintf( __( 'Use the %s filter instead.' ), 'document_title_separator' ) );
	}

	/**
	 * Filters the blog title for use as the feed title.
	 *
	 * @since 2.2.0
	 * @since 4.4.0 The `$sep` parameter was deprecated and renamed to `$deprecated`.
	 *
	 * @param string $title      The current blog title.
	 * @param string $deprecated Unused.
	 */
	return apply_filters( 'get_wp_title_rss', wp_get_document_title(), $deprecated );
}