WordPress at Your Fingertips
function is not described

SimplePie_Item::__construct() public WP 1.0

Create a new item object

This is usually used by SimplePie::get_items() and SimplePie::get_item(). Avoid creating this manually.

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

No Hooks.

Return

null. Nothing.

Usage

$SimplePie_Item = new SimplePie_Item();
$SimplePie_Item->__construct( $feed, $data );
$feed(SimplePie) (required)
Parent feed
$data(array) (required)
Raw data

Code of SimplePie_Item::__construct() WP 5.8.2

public function __construct($feed, $data)
{
	$this->feed = $feed;
	$this->data = $data;
}