WordPress at Your Fingertips
function is not described

SimplePie_Source::get_language() public WP 1.0

{} It's a method of the class: SimplePie_Source{}

No Hooks.

Return

null. Nothing.

Usage

$SimplePie_Source = new SimplePie_Source();
$SimplePie_Source->get_language();

Code of SimplePie_Source::get_language() WP 5.8.2

public function get_language()
{
	if ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'language'))
	{
		return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
	}
	elseif ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_DC_11, 'language'))
	{
		return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
	}
	elseif ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_DC_10, 'language'))
	{
		return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
	}
	elseif (isset($this->data['xml_lang']))
	{
		return $this->sanitize($this->data['xml_lang'], SIMPLEPIE_CONSTRUCT_TEXT);
	}

	return null;
}