• GermanKiwi

    (@germankiwi)


    Hi @awelzel,

    Just wondering, is there any way to filter the “src” attribute of the img tag of the photos in the lightbox, in order to manipulate the source URL?

    I’d like to add a query string to the end of the URL for the purpose of cache busting – I’ve already done so for the regular (non-lightboxed) images on my pages, and I’d like to find a way of doing this for the lightbox images too.

    I tried creating a filter using wp_get_attachment_image_src but it doesn’t seem to have any effect on the lightbox image tags.

  • The topic ‘Filtering the image src attribute’ is closed to new replies.