WC_Data::__sleep │ public │ WC 1.0

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

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