Title: Contact Form 7: Support Deprecated Settings
Author: Dave McHale
Published: <strong>2017 年 12 月 14 日</strong>
Last modified: 2018 年 2 月 2 日

---

搜索插件

![](https://ps.w.org/cf7-support-deprecated-settings/assets/banner-772x250.png?rev
=1787086)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/cf7-support-deprecated-settings/assets/icon-256x256.png?rev
=1787086)

# Contact Form 7: Support Deprecated Settings

 作者：[Dave McHale](https://profiles.wordpress.org/dmchale/)

[下载](https://downloads.wordpress.org/plugin/cf7-support-deprecated-settings.0.4.zip)

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

 [支持](https://wordpress.org/support/plugin/cf7-support-deprecated-settings/)

## 描述

Contact Form 7 no longer supports the `on_sent_ok` and `on_submit` settings available
on the Additional Settings screen as of version 5.0 of CF7. Both settings were deprecated
before this release, which was why this plugin was first created. [https://contactform7.com/additional-settings/](https://contactform7.com/additional-settings/)

This plugin is meant to be a band-aid to quickly get your Additional Settings working.
It reads the Additional Settings data and adds a javascript block when the form 
is output on the page, using DOM Events as suggested by the CF7 author. [https://contactform7.com/dom-events/](https://contactform7.com/dom-events/)

## 安装

 1. Upload the `cf7-support-deprecated-settings` directory to the `/wp-content/plugins/`
    directory via FTP
 2. Alternatively, upload the `cf7-support-deprecated-settings_v#.#.zip` file to the‘
    Plugins->Add New’ page in your WordPress admin area
 3. Activate the plugin through the ‘Plugins’ menu in WordPress

## 常见问题

  Installation Instructions

 1. Upload the `cf7-support-deprecated-settings` directory to the `/wp-content/plugins/`
    directory via FTP
 2. Alternatively, upload the `cf7-support-deprecated-settings_v#.#.zip` file to the‘
    Plugins->Add New’ page in your WordPress admin area
 3. Activate the plugin through the ‘Plugins’ menu in WordPress

  Can I install this plugin even if my version of CF7 currently supports these two
settings?

Yes! This plugin does two things – it adds the new javascript to the page where 
your forms are displayed, and disables the “old” way that CF7 handled these settings.
By installing & activating this plugin you stop relying on Contact Form 7 to process
your `on_sent_ok` and `on_submit` events, so this plugin should work seamlessly 
with any modern version of CF7 whether it natively supports these settings or not.

## 评价

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

### 󠀁[Required update](https://wordpress.org/support/topic/required-update/)󠁿

 [Muhammed Rias A](https://profiles.wordpress.org/riasnelli/) 2020 年 8 月 20 日

Any possibility to get a version update for WP 5.5? Many Thanks.

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/cf7-support-deprecated-settings/reviews/)

## 贡献者及开发者

「Contact Form 7: Support Deprecated Settings」是开源软件。 以下人员对此插件做出
了贡献。

贡献者

 *   [ Dave McHale ](https://profiles.wordpress.org/dmchale/)

[帮助将「Contact Form 7: Support Deprecated Settings」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/cf7-support-deprecated-settings)

### 对开发感兴趣吗?

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

## 更新日志

#### 0.4

 * Update to prevent PHP warning/notices on action/filters
 * Tested with Contact Form 7 v5.0

#### 0.3

 * Initial release to the wordpress.org repository

## 额外信息

 *  版本 **0.4**
 *  最后更新：**8 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **4.9.29**
 *  PHP 版本 ** 5.3 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/cf7-support-deprecated-settings/)
 * 标签
 * [contact](https://cn.wordpress.org/plugins/tags/contact/)[contact form](https://cn.wordpress.org/plugins/tags/contact-form/)
   [email](https://cn.wordpress.org/plugins/tags/email/)[form](https://cn.wordpress.org/plugins/tags/form/)
   [javascript](https://cn.wordpress.org/plugins/tags/javascript/)
 *  [高级视图](https://cn.wordpress.org/plugins/cf7-support-deprecated-settings/advanced/)

## 评级

 5 星（最高 5 星）。

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

[Your review](https://wordpress.org/support/plugin/cf7-support-deprecated-settings/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/cf7-support-deprecated-settings/reviews/)

## 贡献者

 *   [ Dave McHale ](https://profiles.wordpress.org/dmchale/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/cf7-support-deprecated-settings/)