WC_Customer_Data_Store_Session::create()publicWC 1.0

Update the session. Note, this does not persist the data to the DB.

Method of the class: WC_Customer_Data_Store_Session{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Customer_Data_Store_Session = new WC_Customer_Data_Store_Session();
$WC_Customer_Data_Store_Session->create( $customer );
$customer(WC_Customer) (required) (passed by reference — &)
Customer object.

WC_Customer_Data_Store_Session::create() code WC 9.4.2

public function create( &$customer ) {
	$this->save_to_session( $customer );
}