Automattic\WooCommerce\Vendor\Pelago\Emogrifier
CssInliner::getMatchingUninlinableSelectors
Gets the array of selectors present in the CSS provided to inlineCss() for which the declarations could not be applied as inline styles, but which may affect elements in the HTML. The relevant CSS will have been placed in a <style> element. The selectors may include those used within @media rules or those involving dynamic pseudo-classes (such as :hover) or pseudo-elements (such as ::after).
Метод класса: CssInliner{}
Хуков нет.
Возвращает
Массив<Массив-key,. string>
Использование
$CssInliner = new CssInliner(); $CssInliner->getMatchingUninlinableSelectors(): array;
Код CssInliner::getMatchingUninlinableSelectors() CssInliner::getMatchingUninlinableSelectors WC 10.4.3
public function getMatchingUninlinableSelectors(): array
{
return \array_column($this->getMatchingUninlinableCssRules(), 'selector');
}