获得feed
描述
检索某个RSS订阅并进行解析。用MagpieRSS and RSSCache进行解析并自动缓存,用Snoopy HTTP 客户端
用法
<?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()