SimplePie::get_base

Advertisement

Summery Summery

Get the base URL value from the feed

Syntax Syntax

SimplePie::get_base( array $element = array() )

Description Description

Uses <xml:base> if available, otherwise uses the first link in the feed, or failing that, the URL of the feed itself.

Parameters Parameters

$element

(Optional)

Default value: array()

Return Return

(string)

Source Source

File: wp-includes/class-simplepie.php

		{
			if ($this->feed_url !== null)
			{
				return str_replace('&amp;', '&',
				                   $this->sanitize($this->feed_url,
				                                   SIMPLEPIE_CONSTRUCT_IRI));
			}
		}
		return null;
	}

	/**
	 * Get data for an feed-level element
	 *
	 * This method allows you to get access to ANY element/attribute that is a

Advertisement

See also See also

Advertisement

Leave a Reply