跳到内容

MDL Local Service Lead Validator

v1.0.1

Monday Digital Lab · 2026年6月4日 上架

Prevent out-of-area leads by validating phone number area codes on your contact forms before submission.

正在使用
10 以下
评分
暂无
累计下载
364
最近更新
2026年11月24日
需要 WordPress 5.5+已测试到 7.1.5PHP 7.4+

截图

General settings — select countries and regions, then build the allowed-code list.
General settings — select countries and regions, then build the allowed-code list.
International settings — switch modes and manage country-specific parsing rules.
International settings — switch modes and manage country-specific parsing rules.
Blocked leads log — review blocked submissions and export them as CSV.
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.
Front-end warning — inline warning shown below the phone field for out-of-area submissions.

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

  • Lead Validator > Settings: General, International, and Logging tabs
  • Lead Validator > Form Overrides: per-form allowed code lists
  • Lead Validator > Blocked Leads: blocked submission log with CSV export

Validation modes

  • NANP: for standard US and Canada style numbers
  • International: for non-NANP countries or multi-country setups

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

  • Contact Form 7 (free)
  • WPForms (free and Pro)
  • Gravity Forms
  • Elementor Pro Forms
  • Generic HTML forms — any <form> on the page via client-side JS, plus an optional AJAX endpoint for custom server-side validation

Features

  • Two-layer validation for supported integrations: client-side JavaScript (instant) + server-side PHP (secure)
  • World country and region picker for building allowed code lists
  • Configurable list of allowed codes (comma or newline separated)
  • Customisable warning message
  • Configurable CSS selectors for phone fields and target forms
  • NANP and international parsing modes
  • Country-specific international parsing overrides
  • Per-form area code overrides
  • Blocked lead logging with CSV export
  • Multisite support with network-wide default codes
  • Accessible warning UI (role="alert", keyboard focus management)
  • Fully internationalised — translation-ready with .pot file included
  • No external API calls — all validation is local
  • Cleans up all data on plugin deletion

Privacy

All phone number validation is performed locally on your WordPress installation. Visitor data, phone numbers and your settings are never sent anywhere. The only thing that can ever leave your site is the optional deactivation feedback described below, and only if you choose to send it.

Deactivation feedback (optional)

When you deactivate the plugin from the Plugins screen, a short popup asks why. Answering is optional: “Skip & Deactivate” is always available, nothing is sent unless you click “Submit & Deactivate”, and the plugin deactivates either way.

  • What is sent: the reason you pick, the comment you type (if any), the plugin version, the WordPress version and your site language. Your email address is included only if you tick “You may contact me” and enter it. No site URL, IP address or user name is included in the message.
  • How it is sent: as an email from your own site (using WordPress’s wp_mail) to lab@mondaydigital.com. Like any email from your site, the sender address in the email headers shows your site’s domain.
  • Switch it off: add_filter( 'lslv_feedback_enabled', '__return_false' );
  • Monday Digital Lab privacy policy: https://mondaydigital.com/privacy-policy/

Developer hooks

  • lslv_feedback_enabled (filter, bool, default true) — return false to turn off the deactivation feedback popup.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums