Automattic\WooCommerce\Vendor\Pelago\Emogrifier

CssInliner::addExcludedSelectorpublicWC 1.0

Adds a selector to exclude nodes from emogrification.

Any nodes that match the selector will not have their style altered.

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

Хуков нет.

Возвращает

$this.

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

$CssInliner = new CssInliner();
$CssInliner->addExcludedSelector( $selector ): self;
$selector(строка) (обязательный)
the selector to exclude, e.g., ".editor".

Код CssInliner::addExcludedSelector() WC 10.4.3

public function addExcludedSelector(string $selector): self
{
    $this->excludedSelectors[$selector] = true;

    return $this;
}