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

Translator::addAttributeMatching │ public │ WC 1.0

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$Translator = new Translator();
$Translator->addAttributeMatching( $xpath, $operator, $attribute, ?string $value ): XPathExpr;
$xpath(XPathExpr) (обязательный)
.
$operator(строка) (обязательный)
.
$attribute(строка) (обязательный)
.
?string $value(обязательный)
.

Код Translator::addAttributeMatching() WC 11.2.2

public function addAttributeMatching(XPathExpr $xpath, string $operator, string $attribute, ?string $value): XPathExpr
{
    if (!isset($this->attributeMatchingTranslators[$operator])) {
        throw new ExpressionErrorException(sprintf('EmailEditorVendor_Attribute matcher operator "%s" not supported.', $operator));
    }

    return $this->attributeMatchingTranslators[$operator]($xpath, $attribute, $value);
}