WordPress函数文档fetch_feed()

获得feed订阅内容 描述 Retrieves an external feed and parses it….

获得feed订阅内容

描述

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

用法

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

参数

$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 caches results for 12 hours by default. You can modify this by modifying the time interval via the 过滤器 wp_feed_cache_transient_lifetime.

历史

添加于 版本 Version 2.8

源文件

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

相关

  • SimplePie Documentation
  • 原文:http://codex.wordpress.org/Function_Reference/fetch_feed
类别:WordPress函数文档

本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。

评论 (0)COMMENT