Automattic\WooCommerce\EmailEditor\Integrations\Core
Initializer::initialize
Initializes the core blocks renderers.
Method of the class: Initializer{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Initializer = new Initializer(); $Initializer->initialize(): void;
Initializer::initialize() Initializer::initialize code WC 10.9.1
public function initialize(): void {
if ( $this->initialized ) {
return;
}
$this->initialized = true;
add_filter( 'woocommerce_email_editor_theme_json', array( $this, 'adjust_theme_json' ), 10, 1 );
add_filter( 'safe_style_css', array( $this, 'allow_styles' ) );
add_action( 'woocommerce_email_editor_render_start', array( $this, 'reset_renderers' ) );
}