Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_get_attachment_caption ›

Desde4.6.0
Obsoleton/a
apply_filters( 'wp_get_attachment_caption', $caption, $post->ID )
Parâmetros: (2)
  • (string) $caption Caption for the given attachment.
    Required: Yes
  • (int) $post_id Attachment ID.
    Required: Yes
Definido em:
Codex:

Filters the attachment caption.





Fonte

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