WP_Navigation_Block_Renderer::handle_view_script_module_loading()
Handle view script module loading.
Метод класса: WP_Navigation_Block_Renderer{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$result = WP_Navigation_Block_Renderer::handle_view_script_module_loading( $attributes, $block, $inner_blocks );
- $attributes(массив) (обязательный)
- The block attributes.
- $block(WP_Block) (обязательный)
- The parsed block.
- $inner_blocks(WP_Block_List) (обязательный)
- The list of inner blocks.
Список изменений
С версии 6.5.0 | Введена. |
Код WP_Navigation_Block_Renderer::handle_view_script_module_loading() WP Navigation Block Renderer::handle view script module loading WP 6.7.1
private static function handle_view_script_module_loading( $attributes, $block, $inner_blocks ) { if ( static::is_interactive( $attributes, $inner_blocks ) ) { wp_enqueue_script_module( '@wordpress/block-library/navigation/view' ); } }