WooCommerce-Phone-Number-Validator
v1.1.1WooCommerce 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.
README
WooCommerce Phone Number Validator
Description
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.
Features
- 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
Installation
- Download the plugin files and upload them to your
/wp-content/plugins/woocommerce-phone-validatordirectory, 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.
Usage
- 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.
Bulk Validation
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.
Test Mode
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.
Custom Regex
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.
Support
If you encounter any issues or have questions, please open an issue on the plugin's GitHub repository.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This plugin is licensed under the GPL v2 or later.
Credits
Developed by Open WP Club
Details
- Version
- 1.1.1
- Last updated
- October 7, 2024
- License
- Apache-2.0
- Language
- PHP
- Stars
- 0
- Forks
- 0
Download
Download ZIPSponsor us
Our software is free forever. Sponsorships help us maintain 30+ plugins and build new tools for the WordPress ecosystem.
Contact us about sponsoringCommunity
Write for us
Got a WordPress story, tutorial, or opinion? We welcome guest posts from the community.
Pitch a guest post