WordPress开发者和主题制作者的搜索引擎



wp_get_attachment_caption ›

Since4.6.0
已弃用n/a
apply_filters( 'wp_get_attachment_caption', $caption, $post->ID )
参数: (2)
  • (string) $caption Caption for the given attachment.
    Required: Yes
  • (int) $post_id Attachment ID.
    Required: Yes
定义在:
文档:

Filters the attachment caption.





源码

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