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 );
$theme_json(WP_Theme_JSON) (required)
Theme Json used in the email.
$email_context(array)
.
Default: array()

Rendering_Context::__construct() code WC 10.4.3

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