# double-opt-in/5.5.0/src/Events/Integration/IntegrationRegisteredEvent.php

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

- Page: https://pluginprobe.com/plugins/double-opt-in/5.5.0/code/src/Events/Integration/IntegrationRegisteredEvent.php
- Raw: https://pluginprobe.com/plugins/double-opt-in/5.5.0/raw/src/Events/Integration/IntegrationRegisteredEvent.php
- Modified: 2026-07-13T09:16:42+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.5.0/code/src/Events/Integration/IntegrationRegisteredEvent.php#L10-L20`.

```php
<?php
/**
 * Integration Registered Event
 *
 * @package Forge12\DoubleOptIn\Events\Integration
 * @since   4.0.0
 */

namespace Forge12\DoubleOptIn\Events\Integration;

use Forge12\DoubleOptIn\EventSystem\Event;

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

/**
 * Class IntegrationRegisteredEvent
 *
 * @api
 *
 * Dispatched after a form integration is registered in the registry.
 * Useful for extending or modifying integration behavior.
 * Covered by the Addon API semver policy as of Core API 4.3.0.
 */
class IntegrationRegisteredEvent extends Event {

	/**
	 * The integration identifier.
	 *
	 * @var string
	 */
	private string $integrationId;

	/**
	 * The integration display name.
	 *
	 * @var string
	 */
	private string $name;

	/**
	 * Whether the integration is available.
	 *
	 * @var bool
	 */
	private bool $isAvailable;

	/**
	 * Constructor.
	 *
	 * @param string $integrationId The integration identifier.
	 * @param string $name          The integration display name.
	 * @param bool   $isAvailable   Whether the integration is available.
	 */
	public function __construct( string $integrationId, string $name, bool $isAvailable ) {
		parent::__construct();
		$this->integrationId = $integrationId;
		$this->name          = $name;
		$this->isAvailable   = $isAvailable;
	}

	/**
	 * {@inheritdoc}
	 */
	public static function getWordPressHookName(): string {
		return 'f12_cf7_doubleoptin_integration_registered';
	}

	/**
	 * Get the integration identifier.
	 *
	 * @return string
	 */
	public function getIntegrationId(): string {
		return $this->integrationId;
	}

	/**
	 * Get the integration display name.
	 *
	 * @return string
	 */
	public function getName(): string {
		return $this->name;
	}

	/**
	 * Check if the integration is available.
	 *
	 * @return bool True if available.
	 */
	public function isAvailable(): bool {
		return $this->isAvailable;
	}
}

```
