WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Платформа для конвертации и монетизации трафика
функция не описана

SimplePie_Parser::tag_open() public WP 1.0

{} Это метод класса: SimplePie_Parser{}

Хуков нет.

Возвращает

Null. Ничего.

Использование

$SimplePie_Parser = new SimplePie_Parser();
$SimplePie_Parser->tag_open( $parser, $tag, $attributes );

Код SimplePie_Parser::tag_open() WP 5.5.3

<?php
public function tag_open($parser, $tag, $attributes)
{
	list($this->namespace[], $this->element[]) = $this->split_ns($tag);

	$attribs = array();
	foreach ($attributes as $name => $value)
	{
		list($attrib_namespace, $attribute) = $this->split_ns($name);
		$attribs[$attrib_namespace][$attribute] = $value;
	}

	if (isset($attribs[SIMPLEPIE_NAMESPACE_XML]['base']))
	{
		$base = $this->registry->call('Misc', 'absolutize_url', array($attribs[SIMPLEPIE_NAMESPACE_XML]['base'], end($this->xml_base)));
		if ($base !== false)
		{
			$this->xml_base[] = $base;
			$this->xml_base_explicit[] = true;
		}
	}
	else
	{
		$this->xml_base[] = end($this->xml_base);
		$this->xml_base_explicit[] = end($this->xml_base_explicit);
	}

	if (isset($attribs[SIMPLEPIE_NAMESPACE_XML]['lang']))
	{
		$this->xml_lang[] = $attribs[SIMPLEPIE_NAMESPACE_XML]['lang'];
	}
	else
	{
		$this->xml_lang[] = end($this->xml_lang);
	}

	if ($this->current_xhtml_construct >= 0)
	{
		$this->current_xhtml_construct++;
		if (end($this->namespace) === SIMPLEPIE_NAMESPACE_XHTML)
		{
			$this->data['data'] .= '<' . end($this->element);
			if (isset($attribs['']))
			{
				foreach ($attribs[''] as $name => $value)
				{
					$this->data['data'] .= ' ' . $name . '="' . htmlspecialchars($value, ENT_COMPAT, $this->encoding) . '"';
				}
			}
			$this->data['data'] .= '>';
		}
	}
	else
	{
		$this->datas[] =& $this->data;
		$this->data =& $this->data['child'][end($this->namespace)][end($this->element)][];
		$this->data = array('data' => '', 'attribs' => $attribs, 'xml_base' => end($this->xml_base), 'xml_base_explicit' => end($this->xml_base_explicit), 'xml_lang' => end($this->xml_lang));
		if ((end($this->namespace) === SIMPLEPIE_NAMESPACE_ATOM_03 && in_array(end($this->element), array('title', 'tagline', 'copyright', 'info', 'summary', 'content')) && isset($attribs['']['mode']) && $attribs['']['mode'] === 'xml')
		|| (end($this->namespace) === SIMPLEPIE_NAMESPACE_ATOM_10 && in_array(end($this->element), array('rights', 'subtitle', 'summary', 'info', 'title', 'content')) && isset($attribs['']['type']) && $attribs['']['type'] === 'xhtml')
		|| (end($this->namespace) === SIMPLEPIE_NAMESPACE_RSS_20 && in_array(end($this->element), array('title')))
		|| (end($this->namespace) === SIMPLEPIE_NAMESPACE_RSS_090 && in_array(end($this->element), array('title')))
		|| (end($this->namespace) === SIMPLEPIE_NAMESPACE_RSS_10 && in_array(end($this->element), array('title'))))
		{
			$this->current_xhtml_construct = 0;
		}
	}
}