Used By
Used By | Description |
---|---|
wp-includes/script-loader.php: wp_common_block_scripts_and_styles() | Handles the enqueueing of block scripts and styles that are common to both the editor and the front-end. |
Fires after enqueuing block assets for both editor and front-end.
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.
Version | Description |
---|---|
5.0.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/enqueue_block_assets