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:

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.

Related Functions

render_block_core_file, register_block_core_image, render_block_core_page_list, render_block_core_cover, render_block_core_pattern

Top Google Results

User discussions

wpseek mobile