WordPress at a glance
function is not described


Emogrifier::existsMatchForSelectorInCssRule() private WC 1.0

Checks whether there is at least one matching element for the CSS selector contained in the selector element of the provided CSS rule.

Any dynamic pseudo-classes will be assumed to apply. If the selector matches a pseudo-element, it will test for a match with its originating element.

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

No Hooks.




// private - for code of main (parent) class only
$result = $this->existsMatchForSelectorInCssRule( $cssRule );
$cssRule(array) (required)

Code of Emogrifier::existsMatchForSelectorInCssRule() WC 5.0.0

private function existsMatchForSelectorInCssRule(array $cssRule)
    $selector = $cssRule['selector'];
    if ($cssRule['hasUnmatchablePseudo']) {
        $selector = $this->removeUnmatchablePseudoComponents($selector);
    return $this->existsMatchForCssSelector($selector);