Linux 软件免费装
Banner图

BPOTech Confirm Step for Contact Form 7

开发者 wphuebpo
更新时间 2026年9月3日 12:27
PHP版本: 8.0 及以上
WordPress版本: 7.0
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

contact form 7 cf7 review confirm two-step

下载

1.1.3 1.1.4

详情介绍:

Confirm Step for Contact Form 7 adds a review step between filling in a form and sending it. Visitors see a confirmation screen with their answers (using the same mail-tags as your emails), can go back to edit, or submit for real. All options are managed inside each Contact Form 7 form (a Confirm tab in the form editor). There is no separate settings page in WordPress admin. Requires Contact Form 7 to be installed and active. If CF7 is missing, this plugin deactivates itself and shows an admin notice. How it works (front end)
  1. The visitor completes the input step (your normal Form tab template) and clicks the Confirm button ([confirm]).
  2. Contact Form 7 validates the input. The plugin does not send mail yet; the response switches to the confirm step.
  3. The confirm template (Confirm tab) is shown with values filled in via mail-tags.
  4. The visitor clicks Submit ([submit]) to send, or Back ([back]) to return to the input step without reloading the page.
  5. After a successful send, the form returns to the input step.
Features For developers Hooks & Filters cf7cs_custom_confirm_tags (filter) — Register custom tags for the confirm template. Each tag appears as a clickable mail-tag in the Confirm tab editor and is replaced by its content on the front end. Parameters: Example: add_filter( 'cf7cs_custom_confirm_tags', function ( $tags, $form ) { $tags[] = array( 'tag' => 'privacy-notice', 'content' => '<p class="privacy">Your data is safe.</p>', ); return $tags; }, 10, 2 ); In the Confirm tab, [privacy-notice] appears alongside other mail-tags. Click it to insert into the template. cf7cs_before_confirm_step (filter) — Add HTML before the confirm step content on the front end. Parameters: Example: add_filter( 'cf7cs_before_confirm_step', function ( $html, $form ) { return '<div class="confirm-header">Please review your data</div>'; }, 10, 2 ); cf7cs_after_confirm_step (filter) — Add HTML after the confirm step content on the front end. Parameters: Example: add_filter( 'cf7cs_after_confirm_step', function ( $html, $form ) { return '<p class="confirm-footer">Click Submit to send or Back to edit.</p>'; }, 10, 2 ); cf7cs_confirm_template (filter) — Filter the confirm template HTML after all built-in processing (mail-tag placeholders, control tags, and custom tags have been replaced). Parameters: cf7cs_confirm_tag_buttons (action) — Fires after the default and custom tag generator buttons on the Confirm tab. Use this to output fully custom button HTML.

安装:

  1. Install and activate Contact Form 7.
  2. Upload the bpotech-confirm-step-for-contact-form-7 folder to /wp-content/plugins/ (or install from the WordPress plugin directory when available).
  3. Activate Confirm Step for Contact Form 7 under Plugins.
  4. Edit a contact form, open the Confirm tab, enable the confirm step, and configure the template and settings.
  5. On the Form tab, add a [confirm] button (use the Confirm Button tag generator). Save the form.

屏幕截图:

  • Confirm Settings metabox (scroll class and offset).
  • Step status markers help on the Confirm tab.

升级注意事项:

1.1.4 New developer hooks for custom confirm tags and template customisation. Requires Contact Form 7. 1.1.3 Hot fix. Requires Contact Form 7. 1.1.1 Maintenance release. Requires Contact Form 7. 1.1.0 First release on WordPress.org. Requires Contact Form 7.

常见问题:

Does this work without Contact Form 7?

No. CF7 must be active. Otherwise the plugin will not run (and will deactivate on load if CF7 was removed).

Can I use it on only some forms?

Yes. Enable Enable confirm step only on the forms that need a review step.

When is email actually sent?

Only when the visitor submits from the confirm step with [submit] (step 2). The first [confirm] click only validates and shows the review screen.

What happens if I disable “Enable confirm step”?

The form submits in one step like normal CF7.

Do I need to wrap fields manually?

No. The input wrapper is added when the form is rendered. The confirm wrapper is built from the Confirm tab template automatically.

Can I have multiple CF7 forms on one page?

Yes. Each form has its own step state. Global status markers (cf7cfstep-status-class) reflect the last confirm-enabled form that changed step; use cf7cfstep-status-class-{formid} to scope styling per form.

Does uninstalling remove form data?

Uninstall does not delete confirm templates or per-form meta stored on contact forms. Remove or disable confirm in each form before uninstall if you want a clean editor state.

更新日志:

1.1.4 1.1.3 1.1.1 1.1.0