WordPress at a glance
function is not described

Symfony\Component\CssSelector\XPath\Extension

HtmlExtension::translateEnabled() public WC 1.0

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

No Hooks.

Return

XPathExpr.

Usage

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

Code of HtmlExtension::translateEnabled() WC 5.4.1

<?php
public function translateEnabled(XPathExpr $xpath)
{
    return $xpath->addCondition(
        '('
            .'@href and ('
                ."name(.) = 'a'"
                ." or name(.) = 'link'"
                ." or name(.) = 'area'"
            .')'
        .') or ('
            .'('
                ."name(.) = 'command'"
                ." or name(.) = 'fieldset'"
                ." or name(.) = 'optgroup'"
            .')'
            .' and not(@disabled)'
        .') or ('
            .'('
                ."(name(.) = 'input' and @type != 'hidden')"
                ." or name(.) = 'button'"
                ." or name(.) = 'select'"
                ." or name(.) = 'textarea'"
                ." or name(.) = 'keygen'"
            .')'
            .' and not (@disabled or ancestor::fieldset[@disabled])'
        .') or ('
            ."name(.) = 'option' and not("
                .'@disabled or ancestor::optgroup[@disabled]'
            .')'
        .')'
    );
}