Automattic\WooCommerce\EmailEditor\Engine
Assets_Manager::render_email_editor_html
Render the email editor's required HTML and admin header.
Метод класса: Assets_Manager{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Assets_Manager = new Assets_Manager(); $Assets_Manager->render_email_editor_html( $element_id ): void;
- $element_id(строка)
- The ID of the main container element.
По умолчанию:'woocommerce-email-editor'
Код Assets_Manager::render_email_editor_html() Assets Manager::render email editor html WC 10.9.4
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>';
}