WooCommerce Phone Number Validator is a WordPress plugin that enhances the WooCommerce checkout process by validating phone numbers based on country-specific patterns. It allows store owners to ensure that customers enter valid phone numbers for their respective countries.
- Validates phone numbers for 200+ countries
- Easy-to-use interface for selecting countries to validate
- Option to validate all countries at once (Worldwide option)
- Custom regex support for special cases
- Test mode for admin and shop manager roles
- Bulk validation tool for existing user phone numbers
- Seamless integration with WooCommerce settings
- Download the plugin files and upload them to your
/wp-content/plugins/woocommerce-phone-validator
directory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the 'Plugins' screen in WordPress.
- Use the WooCommerce -> Settings -> Phone Validator screen to configure the plugin.
- Go to WooCommerce -> Settings -> Phone Validator.
- Select the countries you want to validate phone numbers for, or choose "Worldwide" to validate all countries.
- Optionally, enter a custom regex pattern if needed.
- Enable or disable Test Mode as required.
- Save your settings using the "Save Changes" button.
- Use the Bulk Validation tool at the bottom of the settings page to check existing user phone numbers.
The Bulk Validation tool allows you to check all existing user phone numbers in your WooCommerce store. To use this feature:
- Navigate to the Phone Validator settings page.
- Scroll down to the "Bulk Phone Number Validation" section.
- Click the "Start Bulk Validation" button.
- The plugin will process all user phone numbers and display a summary of valid, invalid, and missing numbers.
- If there are any invalid or missing numbers, a table will show details for each affected user.
When Test Mode is enabled, phone number validation will only be applied to admin and shop manager user roles. This allows you to test the validation process without affecting regular customer checkouts.
If you need to use a custom regex pattern for phone number validation, you can enter it in the Custom Regex field. This will override the default country-specific patterns for all selected countries.
If you encounter any issues or have questions, please open an issue on the plugin's GitHub repository.
Contributions are welcome! Please feel free to submit a Pull Request.
This plugin is licensed under the GPL v2 or later.
Developed by Open WP Club