SimplePie 1.3.1 is now available. Upgrade now!

SimplePie Documentation.  Learn how to use this thing.  It's way better than going to school.

You are here: Documentation » API Reference » SimplePie » subscribe_url()



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.


  • Available since SimplePie Preview Release.
  • Previously existed as get_feed_url() since SimplePie 0.8.


$feed = new SimplePie();
echo '<a href="' . $feed->subscribe_url() . '">Subscribe to this feed</a>';

See Also

reference/simplepie/subscribe_url.txt · Last modified: 2011/03/05 19:56 (external edit)