| 162 | * Filter the caption text. |
| 163 | * |
| 164 | * Note: If the caption text is empty, the caption shortcode will not be appended |
| 165 | * to the image HTML when inserted into the editor. |
| 166 | * |
| 167 | * Passing an empty value also prevents the 'image_add_caption_shortcode' filter |
| 168 | * from being evaluated at the end of {@see image_add_caption()}. |
| 169 | * |
| 170 | * @since 4.1.0 |
| 171 | * |
| 172 | * @param string $caption The original caption text. |
| 173 | */ |
| 174 | $caption = apply_filters( 'image_add_caption_text', $caption ); |
| 175 | |
| 176 | /** |