MagpieRSS::is_rss() WordPress Method

The MagpieRSS::is_rss() method is used to check if a given string is an RSS feed. This is useful for checking if a given URL is an RSS feed before trying to parse it with MagpieRSS.

MagpieRSS::is_rss() #


Source

File: wp-includes/rss.php

	function is_rss () {
		if ( $this->feed_type == RSS ) {
			return $this->feed_version;
		}
		else {
			return false;
		}
	}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.