A WordPress-centric search engine for devs and theme authors



img_caption_shortcode ›

Since2.6.0
Deprecatedn/a
apply_filters( 'img_caption_shortcode', '', $attr, $content )
Parameters: (3)
  • (string) $output The caption output. Default empty.
    Required: Yes
  • (array) $attr Attributes of the caption shortcode.
    Required: Yes
  • (string) $content The image element, possibly wrapped in a hyperlink.
    Required: Yes
See:
  • img_caption_shortcode()
Defined at:
Codex:

Filters the default caption shortcode output.

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





Source

$output = apply_filters( 'img_caption_shortcode', '', $attr, $content );