apply_filters( 'img_caption_shortcode', string $output, array $attr, string $content )

Filters the default caption shortcode output.

Description Description

If the filtered output isn’t empty, it will be used instead of generating the default caption template.

See also See also

Top ↑

Parameters Parameters


(string) The caption output. Default empty.


(array) Attributes of the caption shortcode.


(string) The image element, possibly wrapped in a hyperlink.

Top ↑

Source Source

File: wp-includes/media.php

View on Trac

Top ↑

Changelog Changelog

Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.