WC_Customer_Data_Store_Session::create()
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 Customer Data Store Session::create WC 8.7.0
public function create( &$customer ) { $this->save_to_session( $customer ); }