WC_Customer_Data_Store_Session::create │ public │ WC 1.0

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

Метод класса: WC_Customer_Data_Store_Session{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WC_Customer_Data_Store_Session = new WC_Customer_Data_Store_Session();
$WC_Customer_Data_Store_Session->create( $customer );
$customer(WC_Customer) (обязательный) (передается по ссылке — &)
Customer object.

Код WC_Customer_Data_Store_Session::create() WC 11.2.2

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