WC_Email::get_must_use_css_styles()
Returns CSS styles that should be included with all HTML e-mails, regardless of theme specific customizations.
Метод класса: WC_Email{}
Хуков нет.
Возвращает
Строку
.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_must_use_css_styles(): string;
Список изменений
С версии 9.1.0 | Введена. |
Код WC_Email::get_must_use_css_styles() WC Email::get must use css styles WC 9.7.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; }