image_add_caption


image_add_caption ( $html, $id, $caption, $title, $align, $url, $size, $alt = '' )

Parameters:
  • (string) $html The image HTML markup to send.
  • (integer) $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 (`thumbnail`, `medium`, `large`, `full`, or added with `add_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, maybe_add_column, add_option, tag_description

Top Google Results

User discussions

wpseek mobile