wp_get_attachment_caption

wp_get_attachment_caption

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('wp_get_attachment_caption') is found 1 times:

  • /wp-includes/post.php line 6925
    	 *
    	 * @param string $caption Caption for the given attachment.
    	 * @param int    $post_id Attachment ID.
    	 */
    	return apply_filters( 'wp_get_attachment_caption', $caption, $post->ID );
    }
    
    /**
     * Retrieves URL for an attachment thumbnail.
     *
     * @since 2.1.0