WordPress at a glance
function is not described

Symfony\Component\CssSelector\XPath\Extension

HtmlExtension::translateChecked() public WC 1.0

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

No Hooks.

Return

XPathExpr. Nothing.

Usage

$HtmlExtension = new HtmlExtension();
$HtmlExtension->translateChecked( $xpath );
$xpath(XPathExpr) (required)
-

Code of HtmlExtension::translateChecked() WC 5.4.1

<?php
public function translateChecked(XPathExpr $xpath)
{
    return $xpath->addCondition(
        '(@checked '
        ."and (name(.) = 'input' or name(.) = 'command')"
        ."and (@type = 'checkbox' or @type = 'radio'))"
    );
}