Update customer fields
This commit is contained in:
parent
f7bf0b1184
commit
a6ffd4cafd
|
@ -26,10 +26,6 @@ class WC_Customer extends WC_Legacy_Customer {
|
|||
'first_name' => '',
|
||||
'last_name' => '',
|
||||
'role' => 'customer',
|
||||
'last_order_id' => null, // read only
|
||||
'last_order_date' => null, // read only
|
||||
'orders_count' => 0, // read only
|
||||
'total_spent' => 0, // read only
|
||||
'username' => '', // read only on existing users
|
||||
'password' => '', // write only
|
||||
'date_created' => '', // read only
|
||||
|
@ -39,15 +35,15 @@ class WC_Customer extends WC_Legacy_Customer {
|
|||
'billing_company' => '',
|
||||
'billing_phone' => '',
|
||||
'billing_email' => '',
|
||||
'billing_postcode' => '',
|
||||
'billing_city' => '',
|
||||
'billing_address_1' => '',
|
||||
'billing_address_2' => '',
|
||||
'billing_state' => '',
|
||||
'billing_postcode' => '',
|
||||
'billing_city' => '',
|
||||
'billing_country' => '',
|
||||
'shipping_first_name' => '',
|
||||
'shipping_last_name' => '',
|
||||
'shipping_company' => '',
|
||||
'shipping_first_name' => '',
|
||||
'shipping_last_name' => '',
|
||||
'shipping_company' => '',
|
||||
'shipping_postcode' => '',
|
||||
'shipping_city' => '',
|
||||
'shipping_address_1' => '',
|
||||
|
@ -64,12 +60,11 @@ class WC_Customer extends WC_Legacy_Customer {
|
|||
* @var array
|
||||
*/
|
||||
protected $_session_keys = array(
|
||||
'billing_first_name', 'billing_last_name', 'billing_company', 'billing_postcode',
|
||||
'billing_city', 'billing_address_1', 'billing_address', 'billing_address_2',
|
||||
'billing_state', 'billing_country', 'shipping_first_name', 'shipping_last_name',
|
||||
'shipping_company', 'shipping_postcode', 'shipping_city', 'shipping_address_1',
|
||||
'shipping_address','shipping_address_2', 'shipping_state', 'shipping_country',
|
||||
'is_vat_exempt', 'calculated_shipping', 'billing_email', 'billing_phone',
|
||||
'billing_postcode', 'billing_city', 'billing_address_1', 'billing_address', 'billing_address_2',
|
||||
'billing_state', 'billing_country', 'shipping_postcode', 'shipping_city', 'shipping_address_1', 'shipping_address',
|
||||
'shipping_address_2', 'shipping_state', 'shipping_country', 'is_vat_exempt', 'calculated_shipping',
|
||||
'billing_first_name', 'billing_last_name', 'billing_company', 'billing_phone', 'billing_email',
|
||||
'shipping_first_name', 'shipping_last_name', 'shipping_company',
|
||||
);
|
||||
|
||||
/**
|
||||
|
@ -78,12 +73,14 @@ class WC_Customer extends WC_Legacy_Customer {
|
|||
* @var array
|
||||
*/
|
||||
protected $_internal_meta_keys = array(
|
||||
'billing_first_name', 'billing_last_name', 'billing_company','billing_postcode',
|
||||
'billing_city', 'billing_address_1', 'billing_address_2', 'billing_state',
|
||||
'billing_country', 'shipping_first_name', 'shipping_last_name', 'shipping_company',
|
||||
'shipping_postcode', 'shipping_city', 'shipping_address_1', 'shipping_address_2',
|
||||
'shipping_state', 'shipping_country', 'paying_customer', 'last_update',
|
||||
'first_name', 'last_name', 'billing_email', 'billing_phone',
|
||||
'billing_postcode', 'billing_city', 'billing_address_1', 'billing_address_2', 'billing_state',
|
||||
'billing_country', 'shipping_postcode', 'shipping_city', 'shipping_address_1',
|
||||
'shipping_address_2', 'shipping_state', 'shipping_country', 'paying_customer',
|
||||
'last_update', 'first_name', 'last_name', 'show_admin_bar_front',
|
||||
'use_ssl', 'admin_color', 'rich_editing', 'comment_shortcuts', 'dismissed_wp_pointers', 'show_welcome_panel',
|
||||
'_woocommerce_persistent_cart', 'session_tokens',
|
||||
'billing_first_name', 'billing_last_name', 'billing_company', 'billing_phone', 'billing_email',
|
||||
'shipping_first_name', 'shipping_last_name', 'shipping_company',
|
||||
);
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue