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

Parameters

$attachment_id

(int) Attachment ID pulled from image HTML.

$image_html

(string) Full HTML image tag.


Changelog

Since: Jetpack 12.6


How to use this hook

See Using actions and filters to customize Jetpack.

Notes

Have a note to contribute?