钩子文档

get_wp_title_rss

💡 云策文档标注

概述

get_wp_title_rss 是一个 WordPress 过滤器,用于修改博客标题以用作 RSS 源标题。它允许开发者自定义 RSS 源中的标题显示。

关键要点

  • 过滤器名称:get_wp_title_rss
  • 参数:$titlestring(当前博客标题)和 $deprecated(已弃用,未使用)
  • 源代码:return apply_filters( 'get_wp_title_rss', wp_get_document_title(), $deprecated );
  • 相关函数:get_wp_title_rss() 位于 wp-includes/feed.php,用于检索博客标题作为源标题
  • 版本变更:4.4.0 版本弃用 $sep 参数并重命名为 $deprecated,2.2.0 版本引入

📄 原文内容

Filters the blog title for use as the feed title.

Parameters

$titlestring
The current blog title.
$deprecatedstring
Unused.

Source

return apply_filters( 'get_wp_title_rss', wp_get_document_title(), $deprecated );

Changelog

Version Description
4.4.0 The $sep parameter was deprecated and renamed to $deprecated.
2.2.0 Introduced.