enqueue_block_editor_assets WordPress Action Hook

The enqueue_block_editor_assets hook is used to load block editor assets. This hook is called by the editor when the editor is initializing.

do_action( 'enqueue_block_editor_assets' ) #

Fires after block assets have been enqueued for the editing interface.


Description

Call add_action on any hook before ‘admin_enqueue_scripts’.

In the function call you supply, simply use wp_enqueue_script and wp_enqueue_style to add your functionality to the block editor.


Top ↑

Source

File: wp-admin/edit-form-blocks.php

View on Trac



Top ↑

Changelog

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