Automattic\WooCommerce\Admin\Features

NewProductManagementExperience::enqueue_styles()publicWC 1.0

Enqueue styles needed for the rich text editor.

Method of the class: NewProductManagementExperience{}

Hooks from the method

Return

null. Nothing (null).

Usage

$NewProductManagementExperience = new NewProductManagementExperience();
$NewProductManagementExperience->enqueue_styles();

NewProductManagementExperience::enqueue_styles() code WC 8.7.0

public function enqueue_styles() {
	if ( ! PageController::is_admin_or_embed_page() ) {
		return;
	}
	wp_enqueue_style( 'wp-edit-blocks' );
	wp_enqueue_style( 'wp-format-library' );
	wp_enqueue_editor();
	/**
	 * Enqueue any block editor related assets.
	 *
	 * @since 7.1.0
	*/
	do_action( 'enqueue_block_editor_assets' );
}