wp_enqueue_editor_block_directory_assets() WordPress Function

The wp_enqueue_editor_block_directory_assets() function is used to enqueue assets for the editor block directory. This function should be called after the editor has been initialized.

wp_enqueue_editor_block_directory_assets() #

Enqueues the assets required for the block directory within the block editor.


Source

File: wp-includes/script-loader.php

function wp_enqueue_editor_block_directory_assets() {
	wp_enqueue_script( 'wp-block-directory' );
	wp_enqueue_style( 'wp-block-directory' );
}


Top ↑

Changelog

Changelog
VersionDescription
5.5.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