You are here: Documentation » API Reference » SimplePie » subscribe_url()
Table of Contents
subscribe_url()
Description
class SimplePie { subscribe_url () }
Returns the URL for the feed. May or may not be different from the URL passed to set_feed_url(), depending on whether auto-discovery was used.
Availability
- Available since SimplePie Preview Release.
- Previously existed as
get_feed_url()
since SimplePie 0.8.
Examples
$feed = new SimplePie(); $feed->set_feed_url('http://simplepie.org/blog/feed/'); $feed->init(); $feed->handle_content_type(); echo '<a href="' . $feed->subscribe_url() . '">Subscribe to this feed</a>';
See Also
reference/simplepie/subscribe_url.txt · Last modified: 2011/03/06 03:56 (external edit)