Core Function
View Source on Trac ↗ img_caption_shortcode()
img_caption_shortcode( mixed $attr, mixed $content = '' ) Builds the Caption shortcode output.
Parameters 1 required
| Name / Type | Description |
|---|---|
| array | $attr { Attributes of the caption shortcode. Required |
| $content string | Optional. Shortcode content. Default empty string. |
Return Value
(string)
HTML content to display the caption.
Function Information
Since Version
2.6.0
Source File
wp-includes/media.php
Advertisement