Core Function
View Source on Trac ↗ render_block_core_file()
render_block_core_file( mixed $attributes, mixed $content ) When the `core/file` block is rendering, check if we need to enqueue the `wp-block-file-view` script.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $attributes array | The block attributes. Required |
| $content string | The block content. Required |
| $block WP_Block | The parsed block. Required |
Return Value
(string)
Returns the block content.
Function Information
Since Version
5.8.0
Source File
wp-includes/blocks/file.php
Advertisement