Automattic\WooCommerce\Vendor\Symfony\Component\CssSelector\XPath\Extension
HtmlExtension::translateChecked
Method of the class: HtmlExtension{}
No Hooks.
Returns
null. Nothing (null).
Usage
$HtmlExtension = new HtmlExtension(); $HtmlExtension->translateChecked( $xpath ): XPathExpr;
- $xpath(XPathExpr) (required)
- .
HtmlExtension::translateChecked() HtmlExtension::translateChecked code WC 10.5.0
public function translateChecked(XPathExpr $xpath): XPathExpr
{
return $xpath->addCondition(
'(@checked '
."and (name(.) = 'input' or name(.) = 'command')"
."and (@type = 'checkbox' or @type = 'radio'))"
);
}