fetch_rss()获得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.

fetch_rss() 描述

用法

 <?php
include_once(ABSPATH WPINC '/rss.php');
$rss fetch_rss($uri);
?> 

fetch_rss() 用法

参数

$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.

fetch_rss() 参数

历史

fetch_rss() 历史

源文件

fetch_rss is defined in wp-includes/rss.php.

fetch_rss() 源文件

相关