Automattic\WooCommerce\Vendor\Symfony\Component\CssSelector\XPath\Extension
AttributeMatchingExtension::translateExists
Метод класса: AttributeMatchingExtension{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$AttributeMatchingExtension = new AttributeMatchingExtension(); $AttributeMatchingExtension->translateExists( $xpath, $attribute, ?string $value ): XPathExpr;
- $xpath(XPathExpr) (обязательный)
- .
- $attribute(строка) (обязательный)
- .
- ?string $value(обязательный)
- .
Код AttributeMatchingExtension::translateExists() AttributeMatchingExtension::translateExists WC 10.5.0
public function translateExists(XPathExpr $xpath, string $attribute, ?string $value): XPathExpr
{
return $xpath->addCondition($attribute);
}