Summery Summery
Get an enclosure from the item
Syntax Syntax
Description Description
Supports the
Parameters Parameters
- $key
-
(Required) The enclosure that you want to return. Remember that arrays begin with 0, not 1
Return Return
(SimplePie_Enclosure|null)
Source Source
File: wp-includes/SimplePie/Item.php
*/ public function get_enclosure($key = 0, $prefer = null) { $enclosures = $this->get_enclosures(); if (isset($enclosures[$key])) { return $enclosures[$key]; } return null; }
Advertisement
Changelog Changelog
Version | Description |
---|---|
Beta 2 | Introduced. |