Automattic\WooCommerce\Vendor\Pelago\Emogrifier\Css
StyleRule::getSelectors
Method of the class: StyleRule{}
No Hooks.
Returns
Array["h1", "p"]
Usage
$StyleRule = new StyleRule(); $StyleRule->getSelectors(): array;
StyleRule::getSelectors() StyleRule::getSelectors code WC 10.5.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
);
}