WordPress at a glance
function is not described

Symfony\Component\CssSelector\XPath\Extension

AttributeMatchingExtension::translateEquals() public WC 1.0

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

No Hooks.

Return

XPathExpr. Nothing.

Usage

$AttributeMatchingExtension = new AttributeMatchingExtension();
$AttributeMatchingExtension->translateEquals( $xpath, $attribute, $value );
$xpath(XPathExpr) (required)
-
$attribute(string) (required)
-
$value(string) (required)
-

Code of AttributeMatchingExtension::translateEquals() WC 5.4.1

<?php
public function translateEquals(XPathExpr $xpath, $attribute, $value)
{
    return $xpath->addCondition(sprintf('%s = %s', $attribute, Translator::getXpathLiteral($value)));
}