You are here: Documentation » API Reference » SimplePie » subscribe_feed()
subscribe_feed()
Description
class SimplePie { subscribe_feed () }
Returns the URL for the feed, prepended with the feed:
pseudo-protocol. Useful for subscribing with desktop-based aggregators.
===== Availability =====
* Available since SimplePie Preview Release.
* Previously existed as
get_feedproto_url()'' since SimplePie 0.8.
===== Examples =====
<code php>$feed = new SimplePie();
$feed→set_feed_url('http://simplepie.org/blog/feed/');
$feed→init();
$feed→handle_content_type();
echo '<a href=”' . $feed→subscribe_feed() . '”>Subscribe to this feed in your desktop aggregator</a>';
</code>
===== See Also =====
* SimplePie
reference/simplepie/subscribe_feed.txt · Last modified: 2011/03/06 03:56 (external edit)