function validate_mobile_number_length() { if (isset($_POST['billing_phone']) && strlen($_POST['billing_phone']) !== 11) { wc_add_notice(__('Please enter a valid 11-digit mobile number.'), 'error'); } } Hello world! – Ummah Publication

Welcome to WordPress. This is your first post. Edit or delete it, then start writing!

Leave a Reply

Your email address will not be published. Required fields are marked *