Automattic\WooCommerce\Internal\EmailEditor
WooContentProcessor::inline_css
Inline the CSS from the email theme and user email settings.
Метод класса: WooContentProcessor{}
Хуков нет.
Возвращает
Строку.
Использование
// private - только в коде основоного (родительского) класса $result = $this->inline_css( $woo_content ): string;
- $woo_content(строка) (обязательный)
- WooCommerce content.
Код WooContentProcessor::inline_css() WooContentProcessor::inline css WC 11.0.1
private function inline_css( string $woo_content ): string {
if ( empty( $woo_content ) ) {
return '';
}
$css = $this->theme_controller->get_stylesheet_for_rendering();
$css .= $this->get_woo_content_styles();
return $this->css_inliner->from_html( $woo_content )->inline_css( $css )->render();
}