Automattic\WooCommerce\Vendor\Pelago\Emogrifier

CssInliner::getNodesToExclude │ private │ WC 1.0

Find the nodes that are not to be emogrified.

Метод класса: CssInliner{}

Хуков нет.

Возвращает

list<\DOMElement>.

Использование

// private - только в коде основоного (родительского) класса
$result = $this->getNodesToExclude(): array;

Код CssInliner::getNodesToExclude() WC 11.2.1

private function getNodesToExclude(): array
{
    $excludedNodes = [];
    foreach (\array_keys($this->excludedSelectors) as $selectorToExclude) {
        foreach ($this->querySelectorAll($selectorToExclude) as $node) {
            $excludedNodes[] = $this->ensureNodeIsElement($node);
        }
    }

    return $excludedNodes;
}