获得feed
描述
译文
检索某个RSS订阅并进行解析。用MagpieRSS and RSSCache进行解析并自动缓存,用Snoopy HTTP 客户端
进行实际检索。
原文
Retrieves an RSS feed and parses it. Uses the MagpieRSS and RSSCache functions for parsing and automatic caching and the Snoopy HTTP client for the actual retrieval.
Deprecated note: Switch to using fetch_feed instead.
用法
<?php
include_once(ABSPATH . WPINC . '/rss.php');
$rss = fetch_rss($uri);
?>
参数
$uri
(URI) (必填) The URI of the RSS feed you want to retrieve. The resulting parsed feed is returned, with the more interesting and useful bits in the items array.
默认值: Nonerray.
历史
添加于 版本 Version 1.5
Deprecated in Version 3.0
源文件
fetch_rss
is defined in wp-includes/rss.php
.
相关
fetch_feed
wp_rss()
原文:http://codex.wordpress.org/Function_Reference/fetch_rss