Automattic\WooCommerce\Vendor\Symfony\Component\CssSelector\XPath
TranslatorInterface::cssToXPath
Translates a CSS selector to an XPath expression.
Method of the class: TranslatorInterface{}
No Hooks.
Returns
null. Nothing (null).
Usage
$TranslatorInterface = new TranslatorInterface(); $TranslatorInterface->cssToXPath( $cssExpr, $prefix ): string;
- $cssExpr(string) (required)
- .
- $prefix(string)
- .
Default:'descendant-or-self::'
TranslatorInterface::cssToXPath() TranslatorInterface::cssToXPath code WC 10.4.3
public function cssToXPath(string $cssExpr, string $prefix = 'descendant-or-self::'): string;