Automattic\WooCommerce\EmailEditorVendor\Pelago\Emogrifier
CssInliner::attributeValueIsImportant
Checks whether $attributeValue is marked as !important.
Метод класса: CssInliner{}
Хуков нет.
Возвращает
bool.
Использование
// private - только в коде основоного (родительского) класса $result = $this->attributeValueIsImportant( $attributeValue ): bool;
- $attributeValue(строка) (обязательный)
- .
Код CssInliner::attributeValueIsImportant() CssInliner::attributeValueIsImportant WC 11.3.0
private function attributeValueIsImportant(string $attributeValue): bool
{
return (new Preg())->throwExceptions($this->debug)->match('/!\\s*+important$/i', $attributeValue) !== 0;
}