img_caption_shortcode

Advertisement

Summery Summery

Filters the default caption shortcode output.

Syntax Syntax

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

Description Description

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

Parameters Parameters

$output

(string) The caption output. Default empty.

$attr

(array) Attributes of the caption shortcode.

$content

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

Source Source

File: wp-includes/media.php

Advertisement

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

See also See also

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.