woocommerce_format_postcode

woocommerce_format_postcode

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

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_format_postcode') is found 1 times:

  • /includes/wc-formatting-functions.php line 1022
    			$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.