WC_Countries::get_country_locale_field_selectors()
Get JS selectors for fields which are shown/hidden depending on the locale.
Method of the class: WC_Countries{}
Hooks from the method
Return
Array
.
Usage
$WC_Countries = new WC_Countries(); $WC_Countries->get_country_locale_field_selectors();
WC_Countries::get_country_locale_field_selectors() WC Countries::get country locale field selectors code WC 9.4.2
public function get_country_locale_field_selectors() { $locale_fields = array( 'address_1' => '#billing_address_1_field, #shipping_address_1_field', 'address_2' => '#billing_address_2_field, #shipping_address_2_field', 'state' => '#billing_state_field, #shipping_state_field, #calc_shipping_state_field', 'postcode' => '#billing_postcode_field, #shipping_postcode_field, #calc_shipping_postcode_field', 'city' => '#billing_city_field, #shipping_city_field, #calc_shipping_city_field', ); return apply_filters( 'woocommerce_country_locale_field_selectors', $locale_fields ); }