WordPress开发者和主题制作者的搜索引擎



enqueue_block_assets ›

Since5.0.0
已弃用n/a
do_action( 'enqueue_block_assets' )
定义在:
文档:

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.





源码

do_action( 'enqueue_block_assets' );