image_add_caption_text

image_add_caption_text

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

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('image_add_caption_text') is found 1 times:

  • /wp-admin/includes/media.php line 204
    	 *
    	 * @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.
    	 *