woocommerce_get_country_locale_base, $this->locale[default]

woocommerce_get_country_locale_base, $this->locale[default]

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

apply_filters('woocommerce_get_country_locale_base, $this->locale[default]') is found 1 times:

  • /includes/class-wc-countries.php line 1722
    			if ( ! isset( $this->locale[ $this->get_base_country() ] ) ) {
    				$this->locale[ $this->get_base_country() ] = $this->locale['default'];
    			}
    
    			$this->locale['default']                   = apply_filters( 'woocommerce_get_country_locale_base', $this->locale['default'] );
    			$this->locale[ $this->get_base_country() ] = apply_filters( 'woocommerce_get_country_locale_base', $this->locale[ $this->get_base_country() ] );
    
    			// Country cannot be hidden or optional via locale — it is the lookup key for locale resolution.
    			// Merchants who sell to a single country should use "Sell to specific countries" instead.
    			foreach ( $this->locale as &$locale_entry ) {
    				if ( isset( $locale_entry['country'] ) ) {