Pelago
Emogrifier::attributeValueIsImportant() private WC 1.0
Checks whether $attributeValue is marked as !important.
{} It's a method of the class: Emogrifier{}
No Hooks.
Return
true/false.
Usage
// private - for code of main (parent) class only $result = $this->attributeValueIsImportant( $attributeValue );
- $attributeValue(string) (required)
- -
Code of Emogrifier::attributeValueIsImportant() Emogrifier::attributeValueIsImportant WC 5.0.0
private function attributeValueIsImportant($attributeValue)
{
return \strtolower(\substr(\trim($attributeValue), -10)) === '!important';
}