[WordPress] 外掛分享: Validation Muse for Contact Form 7

首頁 › 外掛目錄 › Validation Muse for Contact Form 7
WordPress 外掛 Validation Muse for Contact Form 7 的封面圖片
10+
安裝啟用
—
尚無評分
17 天前
最後更新
—
問題解決
WordPress 6.0+ PHP 8.0+ v1.7.2 上架:2026-01-30

內容簡介

Validation Muse for Contact Form 7 讓使用者能夠為每個 Contact Form 7 欄位編寫自訂的驗證規則和錯誤訊息,無需編碼或全域設定,簡化了表單驗證的流程。

【主要功能】
• CF7 6.x SWV 相容
• 自訂正則表達式與長度規則
• 條件「必填-如果」規則
• 客戶端 SWV 整合
• 規則集匯入/匯出與範本
• 多語言支援 via WPML、Polylang & Flavor

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.7.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Validation Muse for Contact Form 7」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Validation Muse lets you write your own validation rules and error messages for every Contact Form 7 field — directly in the form editor, per form, per field. No code, no global settings page, no JavaScript hacks.
Most CF7 validation plugins broke when Contact Form 7 6.x introduced Schema-based Validation (SWV). Validation Muse runs its filters at priority 20 (after CF7 core) and uses Reflection to replace SWV error text on already-invalidated fields, so your custom copy actually shows up — even on the new validation engine.
Why Validation Muse

CF7 6.x SWV compatible — works with the new Schema-based Validation engine, not just legacy hooks.
Custom Regex & Length Rules — define custom regular expression patterns, min length, and max length rules per field with their own error messages.
Conditional “Required-If” Rules — make fields required only when a companion field is filled/checked.
Client-Side SWV Integration — standard validation rules (required, email, length) are injected into CF7’s native SWV engine for instant frontend feedback with full accessibility (A11y) support.
Rule Sets Import/Export & Templates — export/import validation rules as JSON, copy them from other forms, and bulk apply global templates.
Placeholder Tokens — use {field_label}, {min}, and {max} in validation messages to generate dynamic texts.
Per-form, per-field — each form keeps its own messages; no global override.
Stored in post meta — messages live with the form, compatible with CF7 form duplication and third-party CF7 import/export plugins.
Multilingual via WPML, Polylang & Flavor — translates rules using standard WPML/Polylang hooks, and features language tabs + one-click AI Translate when Flavor is active.
Developer-friendly — extensibility hooks vmcf7_loaded and vmcf7_validation_tag_types let you add custom field types.
Lightweight — no admin bloat, no tracking, no upsells.

Supported field types

Required-field messages: any required tag (text, textarea, select, checkbox, radio, file, etc.).
Invalid-format messages: email, url, tel, number (including range), date, and time fields.
Custom error messages on validation failure: file (size/type checks), acceptance (unchecked/unaccepted state), and quiz (incorrect answer).
HTML inside messages is allowed and sanitized through wp_kses_post().
Custom Regex and Min/Max Length rules support all input fields (excluding acceptance and quiz).

Translations
The plugin ships with a .pot file and is already translated into German, Spanish, French, Portuguese (Brazil), Russian, and Ukrainian. Help translate it into your language.

延伸相關外掛

文章
Filter
Mastodon