WC_Data::__sleep()publicWC 1.0

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() code WC 8.7.0

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