WC_Customer_Data_Store_Session::update
Update the session. Note, this does not persist the data to the DB.
Method of the class: WC_Customer_Data_Store_Session{}
No Hooks.
Returns
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() WC Customer Data Store Session::update code WC 10.3.6
public function update( &$customer ) {
$this->save_to_session( $customer );
}