register_block_core_gallery() – Registers the `core/gallery` block on server.

You appear to be a bot. Output may be restricted

Description

Registers the core/gallery block on server.

Usage

register_block_core_gallery();

Parameters

Returns

void

Source

File name: wordpress/wp-includes/blocks/gallery.php
Lines:

1 to 8 of 8
function register_block_core_gallery() {
  register_block_type_from_metadata(
    __DIR__ . '/gallery',
    array(
      'render_callback' => 'block_core_gallery_render',
    )
  );
}
 

 View on GitHub View on Trac