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 10.5.0
public function __sleep() {
return array( 'id' );
}