WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about img_caption_shortcode

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/media.php apply_filters 2224 /**
* 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.
*/

Hook Parameters

Parameter 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.