Automattic\WooCommerce\EmailEditor\Engine\Renderer\ContentRenderer

Rendering_Context::__constructpublicWC 1.0

Rendering_Context constructor.

Method of the class: Rendering_Context{}

No Hooks.

Returns

null. Nothing (null).

Usage

$Rendering_Context = new Rendering_Context();
$Rendering_Context->__construct( $theme_json, $email_context, ?string $language );
$theme_json(WP_Theme_JSON) (required)
Theme Json used in the email.
$email_context(array)
.
Default: array()
?string $language
.
Default: null

Rendering_Context::__construct() code WC 11.0.0

public function __construct( WP_Theme_JSON $theme_json, array $email_context = array(), ?string $language = null ) {
	$this->theme_json    = $theme_json;
	$this->email_context = $email_context;
	$this->language      = $language;
}