WordPress at Your Fingertips
function is not described

WC_Data::__sleep() public WC 1.0

Only store the object ID to avoid serializing the data object instance.

{} It's a method of the class: WC_Data{}

No Hooks.

Return

Array.

Usage

$WC_Data = new WC_Data();
$WC_Data->__sleep();

Code of WC_Data::__sleep() WC 5.5.2

<?php
public function __sleep() {
	return array( 'id' );
}