Метод | Описание | |
---|---|---|
__get ( string $key ) : string | __get function. | |
__isset ( mixed $key ) : boolean | __isset legacy. | |
__set ( mixed $key, $value ) | __set function. | |
calculated_shipping ( boolean $calculated = true ) | Calculated shipping. | |
get_city ( ) | Legacy get city. | |
get_country ( ) | Legacy get country. | |
get_default_country ( ) : string | Get default country for a customer. | |
get_default_state ( ) : string | Get default state for a customer. | |
get_postcode ( ) | Legacy get postcode. | |
get_state ( ) | Legacy get state. | |
is_paying_customer ( $user_id = '' ) : boolean | Is the user a paying customer? | |
save_data ( ) | Save data function. | |
set_address ( $address ) | Legacy set address. | |
set_address_2 ( $address ) | Legacy set address. | |
set_city ( $city ) | Legacy set city. | |
set_country ( $country ) | Legacy set country. | |
set_default_data ( ) | Set default data for a customer. | |
set_location ( string $country, string $state, string $postcode = '', string $city = '' ) | Sets session data for the location. | |
set_postcode ( $postcode ) | Legacy set postcode. | |
set_shipping_to_base ( ) | Set customer shipping address to base address. | |
set_state ( $state ) | Legacy set state. | |
set_to_base ( ) | Set customer address to match shop base address. |
Метод | Описание | |
---|---|---|
filter_legacy_key ( string $key ) : string | Address and shipping_address are aliased, so we want to get the 'real' key name. |
public calculated_shipping ( boolean $calculated = true ) | ||
$calculated | boolean |
public get_default_country ( ) : string | ||
Результат | string |
public get_default_state ( ) : string | ||
Результат | string |
public is_paying_customer ( $user_id = '' ) : boolean | ||
Результат | boolean |
public set_shipping_to_base ( ) |
public set_to_base ( ) |