钩子文档

get_bloginfo_rss

💡 云策文档标注

概述

get_bloginfo_rss 是一个 WordPress 过滤器,用于在 RSS 源中过滤博客信息。它基于 get_bloginfo() 函数,通过 convert_chars() 处理字符转换。

关键要点

  • 过滤器名称:get_bloginfo_rss
  • 参数:$info(转换后的博客信息字符串)和 $show(要检索的博客信息类型)
  • 源代码:return apply_filters( 'get_bloginfo_rss', convert_chars( $info ), $show )
  • 相关函数:get_bloginfo_rss() 在 wp-includes/feed.php 中定义,用于检索 RSS 容器的博客信息
  • 版本历史:自 WordPress 2.2.0 引入

📄 原文内容

Filters the bloginfo for use in RSS feeds.

Description

See also

Parameters

$infostring
Converted string value of the blog information.
$showstring
The type of blog information to retrieve.

Source

return apply_filters( 'get_bloginfo_rss', convert_chars( $info ), $show );

Changelog

Version Description
2.2.0 Introduced.