# acymailing/10.1.4/back/Partial/forms/recaptcha.php

AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress, version 10.1.4. 16 lines.

- Page: https://pluginprobe.com/plugins/acymailing/10.1.4/code/back/Partial/forms/recaptcha.php
- Raw: https://pluginprobe.com/plugins/acymailing/10.1.4/raw/back/Partial/forms/recaptcha.php
- Modified: 2025-01-27T11:09:38+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/acymailing/10.1.4/code/back/Partial/forms/recaptcha.php#L10-L20`.

```php
<?php

use AcyMailing\Classes\UserClass;
use AcyMailing\Helpers\CaptchaHelper;

$currentUserEmail = acym_currentUserEmail();
$userClass = new UserClass();
$identifiedUser = $userClass->getOneByEmail($currentUserEmail);

if (empty($identifiedUser) && $config->get('captcha', 'none') !== 'none' && acym_level(ACYM_ESSENTIAL)) {
    echo '<div class="onefield fieldacycaptcha" id="field_captcha_'.$form->form_tag_name.'">';
    $captcha = new CaptchaHelper();
    echo $captcha->display($form->form_tag_name);
    echo '</div>';
}

```
