block_core_gallery_render


block_core_gallery_render ( $attributes, $content )

Parameters:
  • (array) attributes Attributes of the block being rendered.
  • (string) content Content of the block being rendered.
Returns:
  • (string) The content of the block being rendered.
Defined at:

Description

Adds a style tag for the --wp--style--unstable-gallery-gap var.The Gallery block needs to recalculate Image block width based on the current gap setting in order to maintain the number of flex columns so a css var is added to allow this.

Related Functions

register_block_core_gallery, render_block_core_calendar, register_block_core_calendar, block_core_social_link_services, block_core_navigation_render_submenu_icon

Top Google Results

User discussions

wpseek mobile