A WordPress-centric search engine for devs and theme authors



wp_get_attachment_caption ›

Since4.6.0
Deprecatedn/a
apply_filters( 'wp_get_attachment_caption', $caption, $post->ID )
Parameters: (2)
  • (string) $caption Caption for the given attachment.
    Required: Yes
  • (int) $post_id Attachment ID.
    Required: Yes
Defined at:
Codex:

Filters the attachment caption.





Source

return apply_filters( 'wp_get_attachment_caption', $caption, $post->ID );