---
title: Filter the CSS of email notifications
url: "https://www.seopress.org/support/hooks/filter-the-css-of-email-notifications/"
lang: en-US
updated: 2022-04-07
hook_name: seopress_insights_email_alert_css
required_version: 1.4
---

# Filter the CSS of email notifications

- **Hook name:** `seopress_insights_email_alert_css`
- **Required version:** 1.4

```php
add_filter('seopress_insights_email_alert_css', 'sp_insights_email_alert_css');
function sp_insights_email_alert_css($css) {
    $css = '<style>#wrapper {background: red}</style>';
    return $css;
}
```

Source: [https://gist.github.com/wp-seopress/c3aa64c620a710c928234e3320c4f134](https://gist.github.com/wp-seopress/c3aa64c620a710c928234e3320c4f134)



