WooCommerce Code Reference

Renderer
in package

Class Renderer

Table of Contents

TEMPLATE_FILE  = 'template-canvas.php'
TEMPLATE_STYLES_FILE  = 'template-canvas.css'
$content_renderer  : Content_Renderer
Content renderer
$css_inliner  : Css_Inliner
Css inliner
$templates  : Templates
Templates
$theme_controller  : Theme_Controller
Theme controller
__construct()  : mixed
Renderer constructor.
render()  : array<string|int, mixed>
Renders the email template
inline_css_styles()  : string
Inlines CSS styles into the HTML
render_text_version()  : string
Renders the text version of the email template

Constants

Properties

Methods

render()

Renders the email template

public render(WP_Post $post, string $subject, string $pre_header, string $language[, string $meta_robots = '' ]) : array<string|int, mixed>
Parameters
$post : WP_Post

Post object.

$subject : string

Email subject.

$pre_header : string

Email preheader.

$language : string

Email language.

$meta_robots : string = ''

Email meta robots.

Return values
array<string|int, mixed>