Automattic\WooCommerce\Internal\EmailEditor

BlockEmailRenderer::initpublicWC 1.0

Initialize the renderer.

Method of the class: BlockEmailRenderer{}

No Hooks.

Returns

null. Nothing (null).

Usage

$BlockEmailRenderer = new BlockEmailRenderer();
$BlockEmailRenderer->init( $woo_content_processor ): void;
$woo_content_processor(WooContentProcessor) (required)
Service for extracting WooCommerce content from WC_Email object.

BlockEmailRenderer::init() code WC 10.3.6

final public function init( WooContentProcessor $woo_content_processor ): void {
	$this->woo_content_processor = $woo_content_processor;
	add_action( 'woocommerce_email_blocks_renderer_initialized', array( $this, 'register_block_renderers' ) );
}