woocommerce_get_country_locale_default, $this->get_default_address_fields(

woocommerce_get_country_locale_default, $this->get_default_address_fields(

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

apply_filters('woocommerce_get_country_locale_default, $this->get_default_address_fields(') is found 1 times:

  • /includes/class-wc-countries.php line 1715
     
    			$this->locale = array_intersect_key( $this->locale, array_merge( $this->get_allowed_countries(), $this->get_shipping_countries() ) );
    
    			// Default Locale Can be filtered to override fields in get_address_fields(). Countries with no specific locale will use default.
    			$this->locale['default'] = apply_filters( 'woocommerce_get_country_locale_default', $this->get_default_address_fields() );
    
    			// Filter default AND shop base locales to allow overrides via a single function. These will be used when changing countries on the checkout.
    			if ( ! isset( $this->locale[ $this->get_base_country() ] ) ) {
    				$this->locale[ $this->get_base_country() ] = $this->locale['default'];
    			}