block_core_gallery_render ( $attributes, $content )

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


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