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:

Description

Adds image shortcode with caption to editor.

Related Functions

_cleanup_image_add_caption, add_action, add_option, maybe_add_column, tag_description

Top Google Results

User discussions

wpseek mobile