WC_Customer_Data_Store_Session::update()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->update( $customer );
$customer(WC_Customer) (required) (passed by reference — &)
Customer object.

WC_Customer_Data_Store_Session::update() code WC 8.7.0

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