Automattic\WooCommerce\Vendor\Pelago\Emogrifier
CssInliner::removeImportantAnnotationFromAllInlineStyles
Searches for all nodes with a style attribute and removes the "!important" annotations out of the inline style declarations, eventually by rearranging declarations.
Метод класса: CssInliner{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->removeImportantAnnotationFromAllInlineStyles(): void;
Код CssInliner::removeImportantAnnotationFromAllInlineStyles() CssInliner::removeImportantAnnotationFromAllInlineStyles WC 11.2.1
private function removeImportantAnnotationFromAllInlineStyles(): void
{
/** @var \DOMElement $node */
foreach ($this->getAllNodesWithStyleAttribute() as $node) {
$this->removeImportantAnnotationFromNodeInlineStyle($node);
}
}