WordPress at Your Fingertips
function is not described

SimplePie_Enclosure::get_thumbnail() public WP 1.0

Get a single thumbnail

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

No Hooks.

Return

String|null. Thumbnail URL

Usage

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

Code of SimplePie_Enclosure::get_thumbnail() WP 5.8.2

public function get_thumbnail($key = 0)
{
	$thumbnails = $this->get_thumbnails();
	if (isset($thumbnails[$key]))
	{
		return $thumbnails[$key];
	}

	return null;
}