diff --git a/src/Rest_API/Base_Info.php b/src/Rest_API/Base_Info.php index acb8e5aa..bb7b3af1 100644 --- a/src/Rest_API/Base_Info.php +++ b/src/Rest_API/Base_Info.php @@ -179,9 +179,7 @@ protected function get_receiver_info_schema() { 'postcode' => array( 'error' => __( 'Shipping "Postcode" is empty!', 'postnl-for-woocommerce' ), 'sanitize' => function ( $value ) use ( $self ) { - $value = str_replace( ' ', '', $value ); - - return $self->string_length_sanitization( $value, 7 ); + return $value = str_replace( ' ', '', $value ); }, ), 'state' => array(