wpseek.com
A WordPress-centric search engine for devs and theme authors
enqueue_block_assets › WordPress Action Hooks
Since5.0.0
Deprecatedn/a
› do_action( 'enqueue_block_assets' )
Defined at: |
|
Codex: |
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.
Related Functions: enqueue_block_styles_assets, wp_enqueue_block_style, enqueue_editor_block_styles_assets, generate_block_asset_handle, wp_enqueue_block_support_styles, wp_enqueue_editor_block_directory_assets
Related Hooks: enqueue_block_editor_assets, render_block_data, wp_enqueue_scripts, add_menu_classes, render_block