get_bloginfo_rss() - WordPress 函数参考中文文档

返回介绍

get_bloginfo_rss()

发布于 2017-09-10 字数2534 浏览 951 评论 0

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.


参数

$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()

User Contributed Notes

  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' ); 

上一篇:get_bloginfo()

下一篇:get_blogs_of_user()

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!