fetch_feed()获得feed订阅内容

目录

描述

Retrieves an external feed and parses it. Uses the SimplePie and FeedCache functionality for retrieval and parsing and automatic caching.

fetch_feed() 描述

用法

<?php $feed fetch_feed$uri ); ?>

fetch_feed() 用法

参数

$uri

(mixed) (必填) The URI of the RSS feed you want to retrieve. If an array of URIs, the feeds are merged using SimplePie's multifeed feature. The resulting feed is returned as a standard SimplePie object.

默认值: None

fetch_feed() 参数

注意

fetch_feed caches results for 12 hours by default. You can modify this by modifying the time interval via the 过滤器 wp_feed_cache_transient_lifetime.

fetch_feed() 注意

历史

添加于 版本 Version 2.8

fetch_feed() 历史

源文件

fetch_feed is defined in wp-includes/feed.php.

fetch_feed() 源文件

相关