WPSEO_Sitemap_Cache_Data::unserialize()publicYoast 5.1.0

Constructs the object.

{@internal The magic methods take precedence over the Serializable interface. This means that in practice, this method will now only be called on PHP < 7.4. For PHP 7.4 and higher, the magic methods will be used instead.}

{@internal The Serializable interface is being phased out, in favour of the magic methods. This method should be deprecated and removed and the class should no longer implement the Serializable interface. This change, however, can't be made until the minimum PHP version goes up to PHP 7.4 or higher.}

Метод класса: WPSEO_Sitemap_Cache_Data{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WPSEO_Sitemap_Cache_Data = new WPSEO_Sitemap_Cache_Data();
$WPSEO_Sitemap_Cache_Data->unserialize( $data );
$data(строка) (обязательный)
The string representation of the object in C or O-format.

Список изменений

С версии 5.1.0 Введена.

Код WPSEO_Sitemap_Cache_Data::unserialize() Yoast 22.4

public function unserialize( $data ) {

	$data = unserialize( $data );
	$this->__unserialize( $data );
}