MailPoet\EmailEditor\Engine\Renderer\ContentRenderer
Content_Renderer::reset()
As we use default WordPress filters, we need to remove them after email rendering so that we don't interfere with possible post rendering that might happen later.
Method of the class: Content_Renderer{}
No Hooks.
Return
null
. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->reset(): void;
Content_Renderer::reset() Content Renderer::reset code WC 9.8.1
private function reset(): void { $this->blocks_registry->remove_all_block_renderers(); remove_filter( 'render_block', array( $this, 'render_block' ) ); remove_filter( 'block_parser_class', array( $this, 'block_parser' ) ); remove_filter( 'mailpoet_blocks_renderer_parsed_blocks', array( $this, 'preprocess_parsed_blocks' ) ); }