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' );
}


Top ↑

Changelog

Changelog
VersionDescription
5.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More