Title: Contact Form Zero
Author: Web Guy
Published: <strong>2020 年 5 月 20 日</strong>
Last modified: 2026 年 1 月 21 日

---

搜索插件

![](https://ps.w.org/contact-form-zero/assets/banner-772x250.jpg?rev=2309112)

![](https://ps.w.org/contact-form-zero/assets/icon-256x256.jpg?rev=2309112)

# Contact Form Zero

 作者：[Web Guy](https://profiles.wordpress.org/webguyio/)

[下载](https://downloads.wordpress.org/plugin/contact-form-zero.zip)

 * [详情](https://cn.wordpress.org/plugins/contact-form-zero/#description)
 * [评价](https://cn.wordpress.org/plugins/contact-form-zero/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/contact-form-zero/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/contact-form-zero/#developers)

 [支持](https://wordpress.org/support/plugin/contact-form-zero/)

## 描述

[💬 Ask Question](https://github.com/webguyio/support) | [📧 Email Me](https://cn.wordpress.org/plugins/contact-form-zero/webguywork@gmail.com?output_format=md)

**Zero** Difficulty. **Zero** Spam.

Add a stupidly simple and lightweight contact form to your website in any page, 
post, or text widget with this shortcode:

    ```
    [contact-form-zero]
    ```

The entire point of this plugin is to be completely hands-free, easy, and just work
straight out-of-the-box. Simply plug and play without any required settings to adjust.

If you’re looking for the exact opposite of that, that is, a form you can custom
build with advanced options, I recommend [Contact Form 7](https://wordpress.org/plugins/contact-form-7/).

### Features

 * The most lightweight contact form plugin available for WordPress (no required
   settings to adjust or forms to create)
 * Name, Email, Phone, and Message form fields (phone field is optional for your
   visitors)
 * Automatically sends emails to the email address set under _Settings > General
   > Administration Email Address_
 * Highly effective and hidden anti-spam measures (no annoying CAPTCHAs required)
 * Enable Google reCAPTCHA for additional protection if you like (usually no annoying
   CAPTCHAs required)
 * Enable hCaptcha for additional protection if you like (CAPTCHAs required — only
   paid accounts for the hCaptcha service offer invisible options)
 * Enable Cloudflare Turnstile for additional protection if you like (no annoying
   CAPTCHAs required)
 * Enable Akismet for additional protection if you like (privacy implications)
 * Fully compatible with all the protections of [Dam Spam](https://damspam.com/)(
   fork of Stop Spammers)
 * Easy to customize with CSS (please ask for help if you need it — I’m happy to
   write custom code for you to copy/paste)

### Optional Shortcode Attributes

    ```
    [contact-form-zero email="email@example.com"] — Set a custom email address for form submissions to be sent to.

    [contact-form-zero accent="#000"] — Change the accent color for the form.

    [contact-form-zero unstyled="yes"] — Form is left naked for you or your theme to style.

    [contact-form-zero custom-1="FIELD NAME HERE" custom-2="FIELD NAME HERE*"] — Add as many custom text fields as you like and use * to make it required.

    [contact-form-zero g-key="SITE KEY HERE" g-secret="SECRET KEY HERE"] — Add your API keys (google.com/recaptcha/admin/create) to enable Google reCAPTCHA.

    [contact-form-zero h-key="SITE KEY HERE" h-secret="SECRET KEY HERE"] — Add your API keys (dashboard.hcaptcha.com/sites/new) to enable hCaptcha.

    [contact-form-zero c-key="SITE KEY HERE" c-secret="SECRET KEY HERE"] — Add your API keys (dash.cloudflare.com/?to=/:account/turnstile/add) to enable Cloudflare Turnstile.

    [contact-form-zero akismet="yes"] — Add your API key (akismet.com/signup/#personal) to the Akismet plugin settings to enable Akismet.
    ```

## 安装

There are no required settings to adjust. Simply use the `[contact-form-zero]` shortcode
on any page, post, or text widget or in your theme code, use `<?php echo do_shortcode('[
contact-form-zero]' ); ?>`.

## 常见问题

### Why am I not receiving emails?

I’m using the built-in `wp_mail` function. Most hosting environments (even shared
hosts like Bluehost and GoDaddy) can handle email, but not very well out-of-the-
box and require being optimized. It actually takes quite a bit of work to make sure
your emails are deliverable. Some recommendations:

 * Check that your SPF, DKIM, and other email records are set up correctly ([mail-tester.com](https://www.mail-tester.com/)
   is a great all-around tool for checking and fixing common email deliverability
   issues)
 * Even on shared hosts, you should be able to add a dedicated IP to your account
   for very cheap (which allows you to get away from shared IPs that have a bad 
   reputation because your neighbors are spamming)
 * If all else fails, you can abandon using your own server for mail altogether,
   and host offsite with a free or paid third-party service like Gmail or Mailgun(
   check out the [WP Mail SMTP](https://wordpress.org/plugins/wp-mail-smtp/) plugin
   to go that route)

### Why is the CAPTCHA not appearing on my form?

The modern versions of Google reCAPTCHA, hCaptcha, and Cloudflare Turnstile are 
relatively invisible. Be sure to send yourself a test message through your form.

### How’s the security and privacy?

The security is rock-solid. By default, Contact Form Zero is completely private 
and GDPR-compliant. However, if you choose to enable Google reCAPTCHA, hCaptcha,
Cloudflare Turnstile, or Akismet for your contact form, you may want to check their
privacy policies.

While Contact Form Zero can detect when Akismet is installed on your site, I’ve 
still made it explicitly opt-in only. If Akismet is enabled, every time someone 
uses the contact form, their IP will be sent to a third-party server.

## 评价

![](https://secure.gravatar.com/avatar/2d283950c4aee9a13c109540540070c1ea60968618e3ae578b57b87bc590724c?
s=60&d=retro&r=g)

### 󠀁[Works like a charm!](https://wordpress.org/support/topic/works-like-a-charm-1735/)󠁿

 [Trumani](https://profiles.wordpress.org/trumani/) 2020 年 7 月 3 日

Plugin does exactly what I need it to.

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/contact-form-zero/reviews/)

## 贡献者及开发者

「Contact Form Zero」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Web Guy ](https://profiles.wordpress.org/webguyio/)

「Contact Form Zero」插件已被翻译至 2 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/contact-form-zero/contributors)
为本插件所做的贡献。

[帮助将「Contact Form Zero」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/contact-form-zero)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/contact-form-zero/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/contact-form-zero/)，或通过[RSS](https://plugins.trac.wordpress.org/log/contact-form-zero/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/contact-form-zero/)。

## 更新日志

#### 1.5

 * Added unlimited custom fields
 * Added support for Akismet
 * Added time-based spam protection
 * Improved security

#### 1.4.2

 * Improvements

#### 1.4.1

 * Fixes

#### 1.4

 * Added support for Cloudflare Turnstile

#### 1.3

 * Added support for hCaptcha

#### 1.2

 * Added support for Google reCAPTCHA

#### 1.1

 * Minor code cleanup

#### 1.0

 * Translation-ready
 * Various improvements

#### 0.7

 * Improved sanitization

#### 0.6

 * Improved spam protection even more

#### 0.5

 * Added optional shortcode attributes for customizing the form

#### 0.4

 * Improved spam protection

#### 0.3

 * PHP notice fix

#### 0.2

 * Added placeholders for form fields

#### 0.1

 * New

## 额外信息

 *  版本 **1.5**
 *  最后更新：**4 月前**
 *  活跃安装数量 **30+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.8.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/contact-form-zero/) 、 [Spanish (Spain)](https://es.wordpress.org/plugins/contact-form-zero/)
   和 [Spanish (Venezuela)](https://ve.wordpress.org/plugins/contact-form-zero/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/contact-form-zero)
 * 标签
 * [anti-spam](https://cn.wordpress.org/plugins/tags/anti-spam/)[contact form](https://cn.wordpress.org/plugins/tags/contact-form/)
   [email](https://cn.wordpress.org/plugins/tags/email/)[feedback](https://cn.wordpress.org/plugins/tags/feedback/)
   [quote](https://cn.wordpress.org/plugins/tags/quote/)
 *  [高级视图](https://cn.wordpress.org/plugins/contact-form-zero/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/contact-form-zero/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/contact-form-zero/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/contact-form-zero/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/contact-form-zero/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/contact-form-zero/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/contact-form-zero/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/contact-form-zero/reviews/)

## 贡献者

 *   [ Web Guy ](https://profiles.wordpress.org/webguyio/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/contact-form-zero/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://webguy.io/donate)