Automattic\WooCommerce\Vendor\Pelago\Emogrifier
CssInliner::addExcludedSelector
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() CssInliner::addExcludedSelector WC 10.4.3
public function addExcludedSelector(string $selector): self
{
$this->excludedSelectors[$selector] = true;
return $this;
}