wppaste
WordPress

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:345file scope
  • wp-admin/site-editor.php:314file scope
  • wp-admin/widgets-form-blocks.php:83file scope
  • wp-includes/class-wp-customize-widgets.php:901WP_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.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.0.4 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.