Linux 软件免费装
Banner图

MDL Local Service Lead Validator

开发者 mondaydigitallab
更新时间 2026年6月7日 20:42
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

contact form lead validation local service phone validation area code

下载

1.0.0

详情介绍:

MDL Local Service Lead Validator helps local service businesses stop receiving leads from outside their service area. When a visitor fills in a phone number on a contact or lead form, the plugin checks the area or regional code against your configured service area. If the number is outside your allowed coverage, the submission is blocked and the visitor sees your warning message. How it works
  1. You configure your service area in Lead Validator > Settings.
  2. The plugin builds and stores the allowed code list from your selected countries, regions, or manual entries, and also stores the structured picker selection used by the admin UI.
  3. When a visitor submits a form, the plugin validates the number in the browser for instant feedback and on the server for supported integrations.
  4. Valid numbers submit normally. Invalid numbers are blocked and show your warning message.
Admin screens Validation modes The General tab controls which countries and regional codes are allowed. The International tab controls how those selected countries are parsed when international mode is enabled. Supported form plugins Features Privacy This plugin does not transmit any data to external servers. All phone number validation is performed locally on your WordPress installation.

安装:

  1. Upload the mdl-local-service-lead-validator folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Go to Lead Validator > Settings > General and configure your service area.
  4. If needed, review Lead Validator > Settings > International for non-NANP or multi-country setups.
  5. Optionally enable blocked-lead logging under Lead Validator > Settings > Logging.

屏幕截图:

  • **International settings** — switch modes and manage country-specific parsing rules.
  • **Blocked leads log** — review blocked submissions and export them as CSV.
  • **Front-end warning** — inline warning shown below the phone field for out-of-area submissions.

升级注意事项:

1.0.0 Initial release — no upgrade steps required.

常见问题:

Which phone number formats are supported?

In NANP mode, the plugin supports standard North American Numbering Plan formats, including:

  • (212) 555-1234
  • +1-718-555-0000
  • 917.555.8888
  • 3475551234 In International mode, the plugin can also validate country-specific regional codes using the selected countries and parsing rules from the settings screens.

What happens if I leave the area codes list empty?

If no area codes are configured, the plugin allows all form submissions. This is safe — the plugin only blocks submissions once you have at least one area code saved.

Does this work with Elementor free?

Server-side validation requires Elementor Pro Forms. Client-side JavaScript validation can still work with forms rendered on Elementor pages, including forms provided by other plugins.

Can I use a custom CSS selector for my phone field?

Yes. Go to Lead Validator > Settings > General and update the Phone Field Selector to match your theme or form plugin's phone input. The default selector is input[name*="phone"], input[type="tel"].

Does every form get server-side validation?

No. Server-side validation is built in for Contact Form 7, WPForms, Gravity Forms, and Elementor Pro Forms. Generic HTML forms get frontend JavaScript validation by default, and can use the plugin's AJAX endpoint if you want a custom server-side check too.

Does the plugin add any data to my database?

The plugin stores its settings in WordPress options, including your allowed codes, warning message, selectors, validation mode, international rules, logging preference, and per-form overrides. It also creates a custom blocked-leads table on activation. All plugin options are deleted and the log table is dropped on uninstall.

Is the plugin multisite compatible?

Yes. Version 1.0.0 includes multisite support, including a network admin settings screen for default area codes and a per-site option to inherit or override those network defaults.

Can I give one form a different service area?

Yes. Use Lead Validator > Form Overrides to assign a specific allowed-code list to an individual Contact Form 7, WPForms, Gravity Forms, Elementor, or native form ID.

Does the plugin log blocked submissions?

Yes, if you enable logging in Lead Validator > Settings > Logging. The plugin stores a masked phone number, extracted code, form type, form ID, page URL, and blocked timestamp. Full phone numbers are not stored.

更新日志:

1.0.0