# formidable/6.2.2/classes/models/FrmFieldCaptchaSettings.php

Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes &amp; More, version 6.2.2. 29 lines.

- Page: https://pluginprobe.com/plugins/formidable/6.2.2/code/classes/models/FrmFieldCaptchaSettings.php
- Raw: https://pluginprobe.com/plugins/formidable/6.2.2/raw/classes/models/FrmFieldCaptchaSettings.php
- Modified: 2023-02-14T18:34:36+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/formidable/6.2.2/code/classes/models/FrmFieldCaptchaSettings.php#L10-L20`.

```php
<?php
if ( ! defined( 'ABSPATH' ) ) {
	die( 'You are not allowed to call this page directly.' );
}

/**
 * @since 6.0
 */
class FrmFieldCaptchaSettings {

	public $secret;

	public $token_field;

	public $end_point;

	public function __construct( $frm_settings ) {
		if ( $frm_settings->active_captcha === 'recaptcha' ) {
			$this->secret      = $frm_settings->privkey;
			$this->token_field = 'g-recaptcha-response';
			$this->endpoint    = 'https://www.google.com/recaptcha/api/siteverify';
		} else {
			$this->secret      = $frm_settings->hcaptcha_privkey;
			$this->token_field = 'h-captcha-response';
			$this->endpoint    = 'https://hcaptcha.com/siteverify';
		}
	}
}

```
