Note: If the caption text is empty, the caption shortcode will not be appended to the image HTML when inserted into the editor. Passing an empty value also prevents the 'image_add_caption_shortcode' Filters from being evaluated at the end of image_add_caption().
198*199* @since 4.1.0200*201* @param string$caption The original caption text.202* @param int$id The attachment ID.203*/204$caption=apply_filters('image_add_caption_text',$caption,$id);205206/**207* Filters whether to disable captions.208*209* Prevents image captions from being appended to image HTML when inserted into the editor.210*
History
Introduced in 4.1.0. Unchanged from 6.7.7 through 7.1.0.