SimplePie::__destruct()publicWP 1.0

Remove items that link back to this before destroying this object

Method of the class: SimplePie{}

No Hooks.

Return

null. Nothing (null).

Usage

$SimplePie = new SimplePie();
$SimplePie->__destruct();

SimplePie::__destruct() code WP 6.5.2

public function __destruct()
{
	if (!gc_enabled())
	{
		if (!empty($this->data['items']))
		{
			foreach ($this->data['items'] as $item)
			{
				$item->__destruct();
			}
			unset($item, $this->data['items']);
		}
		if (!empty($this->data['ordered_items']))
		{
			foreach ($this->data['ordered_items'] as $item)
			{
				$item->__destruct();
			}
			unset($item, $this->data['ordered_items']);
		}
	}
}