optInId = $optInId; $this->hash = $hash; $this->email = $email; $this->confirmedIp = $confirmedIp; $this->formId = $formId; $this->formData = $formData; } /** * {@inheritdoc} */ public static function getWordPressHookName(): string { return 'f12_cf7_doubleoptin_after_confirm'; } /** * Prevent the EventDispatcher from bridging this event to a WordPress hook. * * The legacy do_action( 'f12_cf7_doubleoptin_after_confirm', $hash, $optIn ) * is fired manually in AbstractFormIntegration and OptInFrontend with the * original parameters for backward compatibility. Bridging here would cause * the hook to fire twice. * * @return bool */ public function shouldBridgeToWordPress(): bool { return false; } public function getOptInId(): int { return $this->optInId; } public function getHash(): string { return $this->hash; } public function getEmail(): string { return $this->email; } public function getConfirmedIp(): string { return $this->confirmedIp; } public function getFormId(): int { return $this->formId; } /** * Get the submitted form field data. * * Returns the deserialized key-value pairs that the user submitted * with the original form (e.g. ['your-name' => 'John', 'your-email' => 'john@example.com']). * * @return array */ public function getFormData(): array { return $this->formData; } }