內容簡介
Omni Contact Form 是一個 WordPress 外掛,提供基本的聯絡表單。它旨在輕巧且簡單易用。
文檔(在 GitHub 上)
更新紀錄(在 GitHub 上)
用法
在文章或頁面中加入[omni-contact-form],以顯示表單。此簡碼會產生預設表單:兩個欄位(電子郵件地址和訊息)以及一個按鈕來發送訊息。
您可以使用多個簡碼屬性來客製化表單。詳細內容請參閱GitHub 上的完整文檔。
功能
透過簡碼屬性進行設定(無需設定頁面)
僅允許必填欄位:表單中的欄位必須填寫
透過 Ajax 提交(無需重新載入頁面)
乾淨且簡潔的錯誤訊息
隱蔽的操作:只會在自己的頁面上添加 CSS 和 JavaScript
預設基本的防垃圾郵件保護
選用的乘法測驗作為額外的防垃圾郵件保護
提交後顯示的訊息可列印
易於翻譯
要求
伺服器端
PHP 7.0 或更新版本
WordPress 4.9.9 或更新版本
WordPress REST API (自 WordPress 4.7 版開始支援)
客戶端
具備 JavaScript 的瀏覽器
2012 年以後發布的瀏覽器
外掛標籤
開發者團隊
原文外掛簡介
Omni Contact Form is a WordPress plugin for people who want a basic contact form. It aims to be light and simple to use.
Documentation (at GitHub)
Changelog (at GitHub)
Usage
Add [omni-contact-form] to a post or page to display the form. This shortcode generates the default form: two fields (email address and message) and a button to send the message.
You can customize the form by using a number of shortcode attributes. See the full documentation at GitHub.
Features
Configuration via shortcode attributes (there is no settings page)
Required fields only: if a field is in the form, it must be filled
Submission via Ajax (no page reloads)
Clean and simple error messages
Discreet operation: only adds CSS and JavaScript to its own page
Basic anti-spam protection by default
Optional multiplication quiz for additional anti-spam protection
Printable copy of the message displayed after submission
Translation-ready
Requirements
SERVER-SIDE
PHP 7.0 or newer
WordPress 4.9.9 or newer
WordPress REST API (part of WordPress since version 4.7)
CLIENT-SIDE
Browser with JavaScript
Browser released after 2012
