apply_filters ( 'jetpack_carousel_image_attachment_id', int $attachment_id, string $image_html )

Allow filtering the attachment ID used to fetch and populate metadata about an image in a gallery.

Source file: modules/carousel/jetpack-carousel.php

View in GitHub



(int) Attachment ID pulled from image HTML.


(string) Full HTML image tag.


Since: Jetpack 12.6

How to use this hook

See Using actions and filters to customize Jetpack.


Have a note to contribute?