Automattic\WooCommerce\EmailEditor\Integrations\Core

Initializer::initialize │ public │ WC 1.0

Initializes the core blocks renderers.

Метод класса: Initializer{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$Initializer = new Initializer();
$Initializer->initialize(): void;

Код Initializer::initialize() WC 11.3.0

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' ) );
}