WC_Customer_Data_Store_Session::create
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->create( $customer );
- $customer(WC_Customer) (required) (passed by reference — &)
- Customer object.
WC_Customer_Data_Store_Session::create() WC Customer Data Store Session::create code WC 10.5.0
public function create( &$customer ) {
$this->save_to_session( $customer );
}