WordPress at a glance
function is not described

Symfony\Component\CssSelector\XPath

Translator::addAttributeMatching() public WC 1.0

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

No Hooks.

Return

XPathExpr.

Usage

$Translator = new Translator();
$Translator->addAttributeMatching( $xpath, $operator, $attribute, $value );
$xpath(XPathExpr) (required)
-
$operator(string) (required)
-
$attribute(string) (required)
-
$value(string) (required)
-

Code of Translator::addAttributeMatching() WC 5.4.1

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

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