# double-opt-in/5.9.0/src/Integration/FieldTextProviderInterface.php

Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification, version 5.9.0. 36 lines.

- Page: https://pluginprobe.com/plugins/double-opt-in/5.9.0/code/src/Integration/FieldTextProviderInterface.php
- Raw: https://pluginprobe.com/plugins/double-opt-in/5.9.0/raw/src/Integration/FieldTextProviderInterface.php
- Modified: 2026-10-02T09:11:04+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/double-opt-in/5.9.0/code/src/Integration/FieldTextProviderInterface.php#L10-L20`.

```php
<?php
/**
 * Optional for form integrations: the text a visitor reads next to a field.
 *
 * The consent text stored with each opt-in is typed in by hand. When it no
 * longer matches the wording next to the form's checkbox, the proof records
 * a sentence the visitor never saw. With this text the form settings can
 * say so and copy the real wording over.
 *
 * Optional on purpose: integrations that do not implement it lose nothing,
 * and add-ons can also answer through the `f12_doi_form_field_texts` filter.
 *
 * @package Forge12\DoubleOptIn\Integration
 * @since   5.9.0
 */

declare( strict_types=1 );

namespace Forge12\DoubleOptIn\Integration;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

interface FieldTextProviderInterface {

	/**
	 * Visible text per field name, plain text. Fields without one are left out.
	 *
	 * @param int|string $formId The form ID (composite for Elementor).
	 *
	 * @return array<string, string>
	 */
	public function getFieldTexts( $formId ): array;
}

```
