Automattic\WooCommerce\Internal\EmailEditor
BlockEmailRenderer::init
Initialize the renderer.
Метод класса: BlockEmailRenderer{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$BlockEmailRenderer = new BlockEmailRenderer(); $BlockEmailRenderer->init( $woo_content_processor ): void;
- $woo_content_processor(WooContentProcessor) (обязательный)
- Service for extracting WooCommerce content from WC_Email object.
Код BlockEmailRenderer::init() BlockEmailRenderer::init WC 11.2.2
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' ) );
}