add data-attribute to all images inside the_content()
You will need to take a look at the image_send_to_editor filter. This will not update existing records but it if you get it working it will apply to each newly inserted image. very basic filter: function give_linked_images_class($html, $id, $caption, $title, $align, $url, $size, $alt=”” ){ $html; //contains the string you need to edit, you might … Read more