Automattic\WooCommerce\EmailEditorVendor\Pelago\Emogrifier\Css
StyleRule::getSelectors
Метод класса: StyleRule{}
Хуков нет.
Возвращает
array<int, string>. the selectors, e.g. ["h1", "p"]
Использование
$StyleRule = new StyleRule(); $StyleRule->getSelectors(): array;
Код StyleRule::getSelectors() StyleRule::getSelectors WC 11.3.0
public function getSelectors(): array
{
/** @var array<int, Selector> $selectors */
$selectors = $this->declarationBlock->getSelectors();
return \array_map(
static function (Selector $selector): string {
return (string) $selector;
},
$selectors
);
}