enqueue_block_assets

SummerySummery

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

Syntax

do_action( 'enqueue_block_assets' )

DescriptionDescription

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.

SourceSource

File: wp-includes/script-loader.php

ChangelogChangelog

Changelog
Version Description
5.0.0 Introduced.
Scroll to Top