Automattic\WooCommerce\EmailEditorVendor\Symfony\Component\CssSelector\XPath

XPathExpr::addNameTest │ public │ WC 1.0

Метод класса: XPathExpr{}

Хуков нет.

Возвращает

$this.

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

$XPathExpr = new XPathExpr();
$XPathExpr->addNameTest(): self;

Код XPathExpr::addNameTest() WC 11.2.2

public function addNameTest(): self
{
    if ('*' !== $this->element) {
        $this->addCondition('name() = '.Translator::getXpathLiteral($this->element));
        $this->element = '*';
    }

    return $this;
}