Automattic\WooCommerce\EmailEditorVendor\Pelago\Emogrifier\Css

StyleRule::getSelectors │ public │ WC 1.0

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

Хуков нет.

Возвращает

array<int, string>. the selectors, e.g. ["h1", "p"]

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

$StyleRule = new StyleRule();
$StyleRule->getSelectors(): array;

Код 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
    );
}