Automattic\WooCommerce\EmailEditor\Engine\Renderer\ContentRenderer

Rendering_Context::__construct │ public │ WC 1.0

Rendering_Context constructor.

Метод класса: Rendering_Context{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$Rendering_Context = new Rendering_Context();
$Rendering_Context->__construct( $theme_json, $email_context, ?string $language );
$theme_json(WP_Theme_JSON) (обязательный)
Theme Json used in the email.
$email_context(array<string, mixed>)
Email-specific context data.
По умолчанию: array()
?string $language
.
По умолчанию: null

Код Rendering_Context::__construct() WC 11.3.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;
}