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

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

- Page: https://pluginprobe.com/plugins/acymailing/11.0.2/code/back/Partial/forms/recaptcha.php
- Raw: https://pluginprobe.com/plugins/acymailing/11.0.2/raw/back/Partial/forms/recaptcha.php
- Modified: 2026-08-03T10:18:54+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/11.0.2/code/back/Partial/forms/recaptcha.php#L10-L20`.

```php
<?php
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- View file, its variables are local to the include scope, not true globals.
defined('ABSPATH') || die('Restricted Access');

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_'.esc_attr($form->form_tag_name).'">';
    $captcha = new CaptchaHelper();
    $captcha->display($form->form_tag_name);
    echo '</div>';
}

```
