image_add_caption
image_add_caption ( $html, $id, $caption, $title, $align, $url, $size, $alt = '' )
Parameters:- (string) html The image HTML markup to send.
- (int) id Image attachment ID.
- (string) caption Image caption.
- (string) title Image title attribute (not used).
- (string) align Image CSS alignment property.
- (string) url Image source URL (not used).
- (string) size Image size (not used).
- (string) alt Image `alt` attribute (not used).
Returns:- (string) The image HTML markup with caption shortcode.
Defined at: - Introduced in WordPress: 2.6.0
- Deprecated in WordPress: —
Description
Adds image shortcode with caption to editor.