Post_Thumbnail::__serialize()
PHP 8.0+ compatible implementation of the serialization logic.
Return
(array) The data to serialize.
Source
File: src/Tribe/Utils/Post_Thumbnail.php
public function __serialize(): array {
$data = $this->fetch_data();
$data['post_id'] = $this->post_id;
return $data;
}
Changelog
| Version | Description |
|---|---|
| 5.0.6 | Introduced. |