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