Title: [ids] missing from render callback
Last modified: November 28, 2019

---

# [ids] missing from render callback

 *  [nicmare](https://wordpress.org/support/users/nicmare/)
 * (@nicmare)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/ids-missing-from-render-callback/)
 * i hook into gallery render callback and noticed when i enable your plugin, the
   ids of each image is missing in the callback function.
 *     ```
       function foo_check_block() {
           register_block_type( 'core/gallery', array(
               'render_callback' => 'foo_block_gallery_render',
           ) );
       }
       add_action( 'init', 'foo_check_block' );
       function foo_block_gallery_render( $attributes, $content ) {
           write_log($attributes);    
           return $content;
       }
       ```
   
 * print_r:
 *     ```
       [28-Nov-2019 11:01:54 UTC] Array
       (
           [ids] => Array
               (
                   [0] => 1317
                   [1] => 1316
                   [2] => 1315
                   [3] => 1314
                   [4] => 1313
                   [5] => 1312
               )
   
           [imageCrop] => 
           [linkTo] => media
       )
       ```
   
 * with your plugin:
 *     ```
       [28-Nov-2019 11:01:54 UTC] Array
       (
           [imageCrop] => 
           [linkTo] => media
       )
       ```
   
 * why? can you please insert ids. thank you

The topic ‘[ids] missing from render callback’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/block-gallery_f2a3b4.svg)
 * [Block Gallery - Photo Gallery Gutenberg Blocks](https://wordpress.org/plugins/block-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/block-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/block-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/block-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/block-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/block-gallery/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [nicmare](https://wordpress.org/support/users/nicmare/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/ids-missing-from-render-callback/)
 * Status: not resolved