Post_Thumbnail::__serialize()

PHP 8.0+ compatible implementation of the serialization logic.


Return

(array) The data to serialize.


Top ↑

Source

File: src/Tribe/Utils/Post_Thumbnail.php

	public function __serialize(): array {
		$data            = $this->fetch_data();
		$data['post_id'] = $this->post_id;

		return $data;
	}

Top ↑

Changelog

Changelog
Version Description
5.0.6 Introduced.