Filters the default caption shortcode output.
Description
If the filtered output isn’t empty, it will be used instead of generating the default caption template.
See also
Parameters
$outputstring- The caption output. Default empty.
$attrarray- Attributes of the caption shortcode.
$contentstring- The image element, possibly wrapped in a hyperlink.
Source
$attr['class'] .= ' wp-post-image';
Changelog
| Version | Description |
|---|---|
| 2.6.0 | Introduced. |
Example migrated from Codex: