2022-09-27 UTC
# ludovicchabant After some more fiddling around, I found another way to do it: register a callback for the `wp_content_img_tag` hook, which runs on the final content of a post/page, but only for the images found in there. In the callback I can check `get_post_format()` to see if the post is a "photo" or "gallery" post. If so, I add the `u-photo` class using some lame string replacement.