Filter hook 'img_caption_shortcode'
in WP Core File wp-includes/media.php at line 2395
Description
Filters the default caption shortcode output. If the filtered output isn't empty, it will be used instead of generating the default caption template.
Occurrences
Filename |
Line Number |
wp-includes/media.php |
2395 |
Parameters
Type |
Name |
Description |
string |
$output |
The caption output. Default empty. |
array |
$attr |
Attributes of the caption shortcode. |
string |
$content |
The image element, possibly wrapped in a hyperlink. |
PHP Doc
/**
* Filters the default caption shortcode output.
*
* If the filtered output isn't empty, it will be used instead of generating
* the default caption template.
*
* @since 2.6.0
*
* @see img_caption_shortcode()
*
* @param string $output The caption output. Default empty.
* @param array $attr Attributes of the caption shortcode.
* @param string $content The image element, possibly wrapped in a hyperlink.
*/