| 开发者 | wphuebpo |
|---|---|
| 更新时间 | 2026年9月3日 12:27 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
[confirm]).[submit]) to send, or Back ([back]) to return to the input step without reloading the page.[confirm] (step 1, Form tab generator), [submit] (CF7 core, insert from Confirm tab), [back] (step 2, Confirm tab generator). Labels and classes follow CF7 conventions.cf7cfstep-status-class or cf7cfstep-status-class-{formid} to any page element; the plugin toggles cf7cfstep-status-input / cf7cfstep-status-confirm for theme CSS (progress text, sidebars, etc.).CF7ConfirmStep\), no Composer dependency.window.cf7csFormSettings[formId] when a scroll class is configured.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:
$tags (array) — Array of tag definitions. Each item has keys: tag (string, tag name without brackets), content (string, HTML replacement on front end).$contact_form (WPCF7_ContactForm) — The current contact form instance.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:
$html (string) — HTML to prepend (default empty).$contact_form (WPCF7_ContactForm) — The current contact form.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:
$html (string) — HTML to append (default empty).$contact_form (WPCF7_ContactForm) — The current contact form.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:
$template (string) — Processed confirm template HTML.$contact_form (WPCF7_ContactForm) — The current contact form.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.
bpotech-confirm-step-for-contact-form-7 folder to /wp-content/plugins/ (or install from the WordPress plugin directory when available).[confirm] button (use the Confirm Button tag generator). Save the form.No. CF7 must be active. Otherwise the plugin will not run (and will deactivate on load if CF7 was removed).
Yes. Enable Enable confirm step only on the forms that need a review step.
Only when the visitor submits from the confirm step with [submit] (step 2). The first [confirm] click only validates and shows the review screen.
The form submits in one step like normal CF7.
No. The input wrapper is added when the form is rendered. The confirm wrapper is built from the Confirm tab template automatically.
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.
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.
cf7cs_custom_confirm_tags filter for registering custom tags (tag/label/content) with auto admin buttons.cf7cs_before_confirm_step and cf7cs_after_confirm_step filters for injecting HTML around the confirm step.cf7cs_confirm_template filter and cf7cs_confirm_tag_buttons action for advanced customisation.[confirm], review template, [submit] / [back]).