SimplePie_Enclosure::get_caption

Advertisement

Summery Summery

Get a single caption

Syntax Syntax

SimplePie_Enclosure::get_caption( int $key )

Parameters Parameters

$key

(int) (Required)

Return Return

(SimplePie_Caption|null)

Source Source

File: wp-includes/SimplePie/Enclosure.php

		if (isset($captions[$key]))
		{
			return $captions[$key];
		}

		return null;
	}

	/**
	 * Get all captions
	 *
	 * @return array|null Array of {@see SimplePie_Caption} objects

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.