image_add_caption_text

image_add_caption_text

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.8

apply_filters('image_add_caption_text') is found 1 times:

  • /wp-admin/includes/media.php line 204
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    *
     * @param string $caption The original caption text.
     * @param int    $id      The attachment ID.
     */
    $caption = apply_filters( 'image_add_caption_text', $caption, $id );
     
    /**
     * Filters whether to disable captions.
     *
     * Prevents image captions from being appended to image HTML when inserted into the editor.
     *