WPSEO_Sitemap_Cache_Data::serialize()publicYoast 5.1.0

String representation of 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{}

Хуков нет.

Возвращает

Строку. The string representation of the object or null in C-format.

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

$WPSEO_Sitemap_Cache_Data = new WPSEO_Sitemap_Cache_Data();
$WPSEO_Sitemap_Cache_Data->serialize();

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

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

Код WPSEO_Sitemap_Cache_Data::serialize() Yoast 19.7.1

public function serialize() {

	return serialize( $this->__serialize() );
}