WooCommerce phone number field validation not working if the field contains only one "0" character
I wrote a regular expression that validates the phone number in WooCommerce. It works in all cases, unless the field contains a single "0" character. What could be the error? That's the code: $post_value = $_POST['billing_phone']; if ( $post_value &&…