woocommerce_format_postcode

woocommerce_format_postcode

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_format_postcode') is found 1 times:

  • /includes/wc-formatting-functions.php line 1023
    1019
    1020
    1021
    1022
    1023
    1024
    1025
    1026
    1027
    1028
    1029
                $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.