WordPress at a glance
action is not described

enqueue_block_assets action-hook . WP 5.0.0

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.


add_action( 'enqueue_block_assets', 'action_function_name_3251' );
function action_function_name_3251(){
	// action...

Список изменений

С версии 5.0.0 Введена.

Где вызывается хук

wp-includes/script-loader.php 2185
do_action( 'enqueue_block_assets' );

Где используется хук в ядре WordPress

wp-includes/default-filters.php 511
add_action( 'enqueue_block_assets', 'wp_enqueue_registered_block_scripts_and_styles' );
wp-includes/default-filters.php 517
add_action( 'enqueue_block_assets', 'enqueue_block_styles_assets', 30 );