In regards to my previous question about shortcode captions, it doesn’t appear to me that the actual text of a caption is stored anywhere other than in the post content within the shortcode itself.
I would have thought that wp_get_attachment_metadata
would store the info for an attachment, but it doesn’t.
Am I wrong? Or does WordPress not store the actual caption anywhere?