Automattic\WooCommerce\EmailEditor\Engine
Assets_Manager::enqueue_admin_styles
Enqueue admin styles that are needed by the email editor.
Метод класса: Assets_Manager{}
Хуки из метода
Возвращает
null. Ничего (null).
Использование
$Assets_Manager = new Assets_Manager(); $Assets_Manager->enqueue_admin_styles(): void;
Код Assets_Manager::enqueue_admin_styles() Assets Manager::enqueue admin styles WC 11.2.2
public function enqueue_admin_styles(): void {
// Calling action that loads registered blockTypes.
do_action( 'enqueue_block_editor_assets' );
// Load CSS from Post Editor.
wp_enqueue_style( 'wp-edit-post' );
// Print the personalization tag chip styles right after core's editor styles by attaching them to the wp-edit-post handle.
wp_add_inline_style( 'wp-edit-post', (string) file_get_contents( __DIR__ . '/rich-text-comment.css' ) );
// Load CSS for the format library - used for example in popover.
wp_enqueue_style( 'wp-format-library' );
// Enqueue CSS containing --wp--preset variables.
wp_enqueue_global_styles_css_custom_properties();
// Enqueue media library scripts.
wp_enqueue_media();
}