do_action( 'enqueue_block_editor_assets' )
- Since
- 5.0.0
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.
Compatibility
- WordPress
- since 5.0.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Where this hook fires · 4
wp-admin/edit-form-blocks.php:339file scopewp-admin/site-editor.php:308file scopewp-admin/widgets-form-blocks.php:83file scopewp-includes/class-wp-customize-widgets.php:900WP_Customize_Widgets::enqueue_scripts()
Source code
* * In the function call you supply, simply use `wp_enqueue_script` and * `wp_enqueue_style` to add your functionality to the block editor. * * @since 5.0.0 */do_action( 'enqueue_block_editor_assets' ); // In order to duplicate classic meta box behavior, we need to run the classic meta box actions.require_once ABSPATH . 'wp-admin/includes/meta-boxes.php';register_and_do_post_meta_boxes( $post ); // Check if the Custom Fields meta box has been removed at some point.Changelog
Introduced in 5.0.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.8.8 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.