WordPress函数文档bloginfo_rss()
显示博客的RSS相关信息 描述 译文 显示bloginfo函数的RSS容器。 可以用 get_bloginfo…
显示博客的RSS相关信息
描述
译文
显示bloginfo函数的RSS容器。
可以用 get_bloginfo()函数检索任何想要检索的信息。当函数值在feed中被检索以供使用时,所有值的标签都将被除去,字符也将被转换。
原文
Display RSS container for the bloginfo function.
You can retrieve anything that you can using the get_bloginfo() function. Everything will be stripped of tags and characters converted, when the values are retrieved for use in the feeds.
用法
<?php bloginfo_rss( $show ) ?>
参数
$show
(string) (可选) See get_bloginfo() for possible values.
默认值: ”
返回值
(void)
This function does not return a value.
注意
- See get_bloginfo() For the list of possible values to display.
- 使用到: apply_filters() 调用 ‘bloginfo_rss‘ hook with two parameters.
历史
添加于 版本: 0.71
源文件
bloginfo_rss() 函数的代码位于 wp-includes/feed.php.
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/* ———————————-
* wordpress函数 kim收集
* ———————————- */
/**
* Display RSS container for the bloginfo function.
*
* You can retrieve anything that you can using the get_bloginfo() function.
* Everything will be stripped of tags and characters converted, when the values
* are retrieved for use in the feeds.
*
* @since 0.71
* @see get_bloginfo() For the list of possible values to display.
*
* @param string $show See get_bloginfo() for possible values.
*/
function bloginfo_rss($show = ”) {
/**
* Filter the bloginfo for display in RSS feeds.
*
* @since 2.1.0
*
* @see get_bloginfo()
*
* @param string $rss_container RSS container for the blog information.
* @param string $show The type of blog information to retrieve.
*/
echo apply_filters( ‘bloginfo_rss’, get_bloginfo_rss( $show ), $show );
}
|
- 原文:http://codex.wordpress.org/Function_Reference/bloginfo_rss
类别:WordPress函数文档、
本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。

评论功能已经关闭!