메소드 |
설명 |
|
__get ( mixed $key ) : mixed |
Auto-load in-accessible properties on demand. |
|
country_dropdown_options ( string $selected_country = '', string $selected_state = '', boolean $escape = false ) |
Outputs the list of countries and states for use in dropdown boxes. |
|
estimated_for_prefix ( $country_code = '' ) : string |
Prefix certain countries with 'the' |
|
ex_tax_or_vat ( ) : string |
Include the Ex Tax label. |
|
get_address_fields ( mixed $country = '', string $type = 'billing_' ) : array |
Apply locale and get address fields. |
|
get_address_formats ( ) : array |
Get country address formats. |
|
get_allowed_countries ( ) : array |
Get the allowed countries for the store. |
|
get_allowed_country_states ( ) : array |
Get allowed country states. |
|
get_base_city ( ) : string |
Get the base city for the store. |
|
get_base_country ( ) : string |
Get the base country for the store. |
|
get_base_postcode ( ) : string |
Get the base postcode for the store. |
|
get_base_state ( ) : string |
Get the base state for the store. |
|
get_continent_code_for_country ( string $cc ) : string |
Get continent code for a country code. |
|
get_continents ( ) : array |
Get all continents. |
|
get_countries ( ) : array |
Get all countries. |
|
get_country_locale ( ) : array |
Get country locale settings. |
|
get_country_locale_field_selectors ( ) : array |
Get JS selectors for fields which are shown/hidden depending on the locale. |
|
get_default_address_fields ( ) : array |
Returns the fields we show by default. This can be filtered later on. |
|
get_european_union_countries ( $type = '' ) : string[] |
Gets an array of countries in the EU. |
|
get_formatted_address ( array $args = [] ) : string |
Get country address format. |
|
get_shipping_countries ( ) : array |
Get the countries you ship to. |
|
get_shipping_country_states ( ) : array |
Get shipping country states. |
|
get_states ( string $cc = null ) : array |
Get the states for a country. |
|
inc_tax_or_vat ( ) : string |
Include the Inc Tax label. |
|
load_country_states ( ) |
Load the states. |
|
shipping_to_prefix ( $country_code = '' ) : string |
Gets the correct string for shipping - either 'to the' or 'to' |
|
tax_or_vat ( ) : string |
Correctly name tax in some countries VAT on the frontend. |
|