!
也想出现在这里? 联系我们
广告位
当前位置:首页>开发>WordPress开发手册>WordPress函数手册>WordPress函数文档fetch_rss()

WordPress函数文档fetch_rss()

获得feed 描述 译文 检索某个RSS订阅并进行解析。用MagpieRSS and RSSCache进行解析…--由S9社区整理

获得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

给TA打赏
共{{data.count}}人
人已打赏
WordPress函数手册

WordPress函数文档format_to_post()

2023-6-16 19:42:35

WordPress函数手册

WordPress函数文档fetch_feed()

2023-6-16 19:43:13

声明 本站上的部份代码及教程来源于互联网,仅供网友学习交流,若您喜欢本文可附上原文链接随意转载。无意侵害您的权益,请发送邮件至 [email protected] 或点击右侧 私信:林沐阳 反馈,我们将尽快处理。
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索