woocommerce_format_postcode

woocommerce_format_postcode

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_format_postcode') is found 1 times:

  • /includes/wc-formatting-functions.php line 1016
    			$postcode = preg_replace( '/^(DK)(.+)$/', '${1}-${2}', $postcode );
    			break;
    	}
    
    	return apply_filters( 'woocommerce_format_postcode', trim( $postcode ), $country );
    }
    
    /**
     * Normalize postcodes.
     *
     * Remove spaces and convert characters to uppercase.