W3cubDocs

/WordPress

apply_filters( 'wp_get_attachment_caption', string $caption, int $post_id )

Filters the attachment caption.

Parameters

$caption

(string) Caption for the given attachment.

$post_id

(int) Attachment ID.

Source

File: wp-includes/post.php

View on Trac

Changelog

Version Description
4.6.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_get_attachment_caption