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

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

- Page: https://pluginprobe.com/plugins/formidable/5.5.6/code/classes/models/FrmFieldCaptchaSettings.php
- Raw: https://pluginprobe.com/plugins/formidable/5.5.6/raw/classes/models/FrmFieldCaptchaSettings.php
- Modified: 2022-12-01T18:48:28+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/5.5.6/code/classes/models/FrmFieldCaptchaSettings.php#L10-L20`.

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

/**
 * @since x.x
 */
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';
		}
	}
}

```
