MailPoet\EmailEditor\Engine\Renderer\ContentRenderer
Content_Renderer::initialize()
Initialize the content renderer
Method of the class: Content_Renderer{}
Hooks from the method
Return
null
. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->initialize();
Content_Renderer::initialize() Content Renderer::initialize code WC 9.8.1
private function initialize() { add_filter( 'render_block', array( $this, 'render_block' ), 10, 2 ); add_filter( 'block_parser_class', array( $this, 'block_parser' ) ); add_filter( 'mailpoet_blocks_renderer_parsed_blocks', array( $this, 'preprocess_parsed_blocks' ) ); do_action( 'mailpoet_blocks_renderer_initialized', $this->blocks_registry ); }