WC_Email::get_must_use_css_styles()protectedWC 9.1.0

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.

Return

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() code WC 9.8.2

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;
}