PluginProbe
Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification / 5.9.0
Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification v5.9.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 3.0.0 3.0.1 3.0.2 3.0.3 3.0.5 All 42 releases
double-opt-in / src / Integration / FieldTextProviderInterface.php

FieldTextProviderInterface.php in Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification 5.9.0, at src/Integration/FieldTextProviderInterface.php

36 lines 991 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Optional for form integrations: the text a visitor reads next to a field.
4 *
5 * The consent text stored with each opt-in is typed in by hand. When it no
6 * longer matches the wording next to the form's checkbox, the proof records
7 * a sentence the visitor never saw. With this text the form settings can
8 * say so and copy the real wording over.
9 *
10 * Optional on purpose: integrations that do not implement it lose nothing,
11 * and add-ons can also answer through the `f12_doi_form_field_texts` filter.
12 *
13 * @package Forge12\DoubleOptIn\Integration
14 * @since 5.9.0
15 */
16
17 declare( strict_types=1 );
18
19 namespace Forge12\DoubleOptIn\Integration;
20
21 if ( ! defined( 'ABSPATH' ) ) {
22 exit;
23 }
24
25 interface FieldTextProviderInterface {
26
27 /**
28 * Visible text per field name, plain text. Fields without one are left out.
29 *
30 * @param int|string $formId The form ID (composite for Elementor).
31 *
32 * @return array<string, string>
33 */
34 public function getFieldTexts( $formId ): array;
35 }
36