wppaste
WordPress

do_action( 'enqueue_block_assets' )

Since
5.0.0
Fires after enqueuing block assets for both editor and front-end.

Description

Call add_action on any hook before 'wp_enqueue_scripts'.

In the function call you supply, simply use wp_enqueue_script and wp_enqueue_style to add your functionality to the Gutenberg 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 · 2

  • wp-includes/block-editor.php:342_wp_get_iframed_editor_assets()
  • wp-includes/script-loader.php:2516wp_common_block_scripts_and_styles()

Source code

	 *	 * In the function call you supply, simply use `wp_enqueue_script` and	 * `wp_enqueue_style` to add your functionality to the Gutenberg editor.	 *	 * @since 5.0.0	 */	do_action( 'enqueue_block_assets' );} /** * Applies a filter to the list of style nodes that comes from WP_Theme_JSON::get_style_nodes(). * * This particular filter removes all of the blocks from the array.

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.