do_action( 'enqueue_block_assets' )
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.
Source
File: wp-includes/script-loader.php
.
View all references
do_action( 'enqueue_block_assets' );
Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |
User Contributed Notes
-
Skip to note 1 content You must log in to vote on the helpfulness of this noteVote results for this note: 1You must log in to vote on the helpfulness of this note