Filters the attachment caption.
Parameters
$caption
string- Caption for the given attachment.
$post_id
int- Attachment ID.
Source
return apply_filters( 'wp_get_attachment_caption', $caption, $post->ID );
Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.