wp-includes/blocks/gallery.php


Lines:

1 to 18 of 18
<?php

/**
 * Server-side rendering of the `core/gallery` block.
 *
 * @package WordPress
 */

/* function block_core_gallery_data_id_backcompatibility() – Handles backwards compatibility for Gallery Blocks,
whose images feature a `data-id` attribute. */

add_filter( 'render_block_data', 'block_core_gallery_data_id_backcompatibility' );

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

add_action( 'init', 'register_block_core_gallery' );
 

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      API Letters: ,,,,