Automattic\WooCommerce\EmailEditor\Engine

Assets_Manager::render_email_editor_htmlpublicWC 1.0

Render the email editor's required HTML and admin header.

Method of the class: Assets_Manager{}

No Hooks.

Returns

null. Nothing (null).

Usage

$Assets_Manager = new Assets_Manager();
$Assets_Manager->render_email_editor_html( $element_id ): void;
$element_id(string)
The ID of the main container element.
Default: 'woocommerce-email-editor'

Assets_Manager::render_email_editor_html() code WC 10.7.0

public function render_email_editor_html( string $element_id = 'woocommerce-email-editor' ): void {
	// @phpstan-ignore-next-line -- PHPStan tried to check if the file exists.
	require_once ABSPATH . 'wp-admin/admin-header.php';
	echo '<div id="' . esc_attr( $element_id ) . '" class="block-editor block-editor__container hide-if-no-js"></div>';
}