wp_enqueue_editor_format_library_assets() WordPress Function
The wp_enqueue_editor_format_library_assets() function is used to enqueue assets for the editor format library. This function should be called from the editor format library's 'editor_assets' action hook.
wp_enqueue_editor_format_library_assets() #
Enqueues the assets required for the format library within the block editor.
Source
File: wp-includes/script-loader.php
function wp_enqueue_editor_format_library_assets() { wp_enqueue_script( 'wp-format-library' ); wp_enqueue_style( 'wp-format-library' ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.8.0 | Introduced. |