Automattic\WooCommerce\EmailEditorVendor\Symfony\Component\CssSelector\XPath
XPathExpr::addNameTest
Метод класса: XPathExpr{}
Хуков нет.
Возвращает
$this.
Использование
$XPathExpr = new XPathExpr(); $XPathExpr->addNameTest(): self;
Код XPathExpr::addNameTest() XPathExpr::addNameTest WC 11.2.2
public function addNameTest(): self
{
if ('*' !== $this->element) {
$this->addCondition('name() = '.Translator::getXpathLiteral($this->element));
$this->element = '*';
}
return $this;
}