PluginProbe
Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification / 5.12.0
Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification v5.12.0
5.12.0 5.13.0 5.13.1 5.11.0 5.10.0 5.9.0 5.8.0 5.8.1 5.7.0 5.6.2 5.6.3 5.6.1 5.6.0 5.5.0 5.4.0 5.3.2 5.3.1 5.1.6 5.1.5 trunk 2.1.5 2.11 2.12 2.13 2.15 All 47 releases
← All changes | compatibility/OptInFrontend.class.php +13 -0 5.8.1 → 5.12.0 View file →
@@ -1562,7 +1562,20 @@
1562 1562 'form' => $formHtml,
1563 1563 'email' => $recipient,
1564 1564 'consent_text' => $consentText,
1565 1565 'consent_field' => $consentField,
1566 + 'form_ref' => $this->resolveFormRef( $parameter ),
1566 1567 ];
1568 + }
1569 +
1570 + /**
1571 + * Instance of the form inside the form id, stored as `form_ref`.
1572 + *
1573 + * Integrations that can host several forms under one form id (Elementor
1574 + * pages) override this. Empty ties the opt-in to the whole form.
1575 + *
1576 + * @param array<string, mixed> $parameter The merged request parameters.
1577 + */
1578 + protected function resolveFormRef( array $parameter ): string {
1579 + return '';
1567 1580 }
1568 1581 }