Alter image output in content
Your better off adding your custom image data when you insert it into a post using media_send_to_editor, the caveat is this will not be applied to any existing images, only ones inserted after adding the function. To apply it to to existing content you will have use preg_match on the_content filter, but this can significantly … Read more