apply_filters( ‘wp_get_attachment_caption’, string $caption, int $post_id )

In this article

Filters the attachment caption.

Parameters

$captionstring
Caption for the given attachment.
$post_idint
Attachment ID.

Source

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

Changelog

VersionDescription
4.6.0Introduced.

User Contributed Notes

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