Core Function
View Source on Trac ↗ render_block_core_image()
render_block_core_image( mixed $attributes, mixed $content, mixed $block ) Renders the `core/image` block on the server,
Parameters 3 required
| Name / Type | Description |
|---|---|
| $attributes array | The block attributes. Required |
| $content string | The block content. Required |
| $block WP_Block | The block object. Required |
Return Value
(string)
The block content with the data-id attribute added.
Function Information
Since Version
5.9.0
Source File
wp-includes/blocks/image.php
Advertisement