WC_Email::get_must_use_css_styles
Returns CSS styles that should be included with all HTML e-mails, regardless of theme specific customizations.
Method of the class: WC_Email{}
No Hooks.
Returns
String.
Usage
// protected - for code of main (parent) or child class $result = $this->get_must_use_css_styles(): string;
Changelog
| Since 9.1.0 | Introduced. |
WC_Email::get_must_use_css_styles() WC Email::get must use css styles code WC 10.8.1
protected function get_must_use_css_styles(): string {
$css = <<<'EOF'
/*
* Temporary measure until e-mail clients more properly support the correct styles.
* See https://github.com/woocommerce/woocommerce/pull/47738.
*/
.screen-reader-text {
display: none;
}
EOF;
return $css;
}