^ 回到顶部
  • 人生没有定律,每个人都有自己的节奏
  • 本站wordpress建站教程均通过实践后发布,希望对你有帮助
  • 希望你的坚持,都是因为热爱,而不是因为不甘心
  • 8年wordpress建站经验,5星服务品质
  • 那些不愿意让你吃亏的人,才是真正值得你深交的人,也是值得你付出时间的人
  • 阿里云2核2g仅需86元/年

wordpress函数get_bloginfo_rss()用法示例

get_bloginfo_rss( string $show = '' )

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.

新用户2核2g仅需86元/年    领取1153套模板    免费cdn流量包    ¥3188礼包


参数

$show

(string)
(Optional)
See get_bloginfo() for possible values.

Default value: ”


返回值

(string)


源代码

File: wp-includes/feed.php

function get_bloginfo_rss($show = '') {
	$info = strip_tags(get_bloginfo($show));
	/**
	 * Filters the bloginfo for use in RSS feeds.
	 *
	 * @since 2.2.0
	 *
	 * @see convert_chars()
	 * @see get_bloginfo()
	 *
	 * @param string $info Converted string value of the blog information.
	 * @param string $show The type of blog information to retrieve.
	 */
	return apply_filters( 'get_bloginfo_rss', convert_chars( $info ), $show );
}

更新日志

Version 描述
1.5.1 Introduced.

相关函数

Uses

  • wp-includes/formatting.php:
    convert_chars()
  • wp-includes/general-template.php:
    get_bloginfo()
  • wp-includes/plugin.php:
    apply_filters()
  • wp-includes/feed.php:
    get_bloginfo_rss

Used By

  • wp-includes/feed.php:
    rss2_site_icon()
  • wp-admin/includes/export.php:
    wxr_site_url()
  • wp-includes/general-template.php:
    get_the_generator()
  • wp-includes/feed.php:
    get_the_category_rss()
  • wp-includes/feed.php:
    bloginfo_rss()

  1. Skip to note content

    You must log in to vote on the helpfulness of this noteVote results for this note: 0You must log in to vote on the helpfulness of this note

    Contributed by Codex

    Assigns the URL of your blog’s RSS2 feed to the variable $rss2_url.

    $rss2_url = get_bloginfo_rss( 'rss2_url' ); 

让小雨知道,这篇文章帮到了你
扫码关注微信公众号zs40086(微搜片)随时随地微信看片,抢先福利电影等你来

热门推荐

如有疑问,请前往问答中心反馈!

反馈