Automattic\WooCommerce\Admin\Features\ProductBlockEditor
Init::enqueue_styles
Enqueue styles needed for the rich text editor.
Method of the class: Init{}
Hooks from the method
Returns
null
. Nothing (null).
Usage
$Init = new Init(); $Init->enqueue_styles();
Init::enqueue_styles() Init::enqueue styles code WC 9.8.5
public function enqueue_styles() { if ( ! PageController::is_admin_page() ) { return; } wp_enqueue_style( 'wc-product-editor' ); wp_enqueue_style( 'wp-editor' ); 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' ); }