Automattic\WooCommerce\Vendor\Pelago\Emogrifier
CssInliner::attributeValueIsImportant
Checks whether $attributeValue is marked as !important.
Method of the class: CssInliner{}
No Hooks.
Returns
true|false.
Usage
// private - for code of main (parent) class only $result = $this->attributeValueIsImportant( $attributeValue ): bool;
- $attributeValue(string) (required)
- .
CssInliner::attributeValueIsImportant() CssInliner::attributeValueIsImportant code WC 10.4.3
private function attributeValueIsImportant(string $attributeValue): bool
{
return (new Preg())->throwExceptions($this->debug)->match('/!\\s*+important$/i', $attributeValue) !== 0;
}