WordPress at a glance
function is not described

SimplePie_Enclosure::get_caption() public WP 1.0

Get a single caption

{} It's a method of the class: SimplePie_Enclosure{}

No Hooks.

Return

SimplePie_Caption|null.

Usage

$SimplePie_Enclosure = new SimplePie_Enclosure();
$SimplePie_Enclosure->get_caption( $key );
$key(int)
-

Code of SimplePie_Enclosure::get_caption() WP 5.7.2

<?php
public function get_caption($key = 0)
{
	$captions = $this->get_captions();
	if (isset($captions[$key]))
	{
		return $captions[$key];
	}

	return null;
}