Automattic\WooCommerce\EmailEditor\Engine\Renderer\ContentRenderer

Content_Renderer::restore_rendering_contextpublicWC 1.0

Restore a previously active rendering context.

Method of the class: Content_Renderer{}

No Hooks.

Returns

null. Nothing (null).

Usage

$Content_Renderer = new Content_Renderer();
$Content_Renderer->restore_rendering_context( ?Rendering_Context $rendering_context ): void;
?Rendering_Context $rendering_context(required)
.

Content_Renderer::restore_rendering_context() code WC 11.0.0

public function restore_rendering_context( ?Rendering_Context $rendering_context ): void {
	$this->rendering_context = $rendering_context;
}