render_block_core_image
render_block_core_image ( $attributes, $content, $block )
Parameters:- (array) attributes The block attributes.
- (string) content The block content.
- (WP_Block) block The block object.
Returns:- (string) The block content with the data-id attribute added.
Defined at: - Introduced in WordPress: 5.9.0
- Deprecated in WordPress: —
Description
Renders the `core/image` block on the server,
adding a data-id attribute to the element if core/gallery has added on pre-render.