WooCommerce Code Reference

Email_Css_Inliner
in package
implements Css_Inliner

Class for inlining CSS in HTML emails.

Interfaces, Classes and Traits

Css_Inliner

Table of Contents

$inliner  : CssInliner
The CSS inliner instance.
from_html()  : self
Creates a new instance from HTML content.
inline_css()  : self
Inlines the provided CSS.
render()  : string
Renders the HTML with inlined CSS.

Properties

Methods

inline_css()

Inlines the provided CSS.

public inline_css([string $css = '' ]) : self
Parameters
$css : string = ''

The CSS to inline.

Tags
throws
LogicException

If from_html() was not called first.

Return values
self