WC_Data::__sleep
Only store the object ID to avoid serializing the data object instance.
Method of the class: WC_Data{}
No Hooks.
Returns
array.
Usage
$WC_Data = new WC_Data(); $WC_Data->__sleep();
WC_Data::__sleep() WC Data:: sleep code WC 11.1.2
public function __sleep() {
return array( 'id' );
}