render_block_core_file
render_block_core_file ( $attributes, $content )
Parameters:- (array) attributes The block attributes.
- (string) content The block content.
- (WP_Block) block The parsed block.
Returns:- (string) Returns the block content.
Defined at: - Introduced in WordPress: 5.8.0
- Deprecated in WordPress: —
Description
When the `core/file` block is rendering, check if we need to enqueue the `wp-block-file-view` script.