PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / trunk
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress vtrunk
11.1.1 11.1.0 11.0.5 11.0.4 11.0.3 11.0.2 11.0.1 11.0.0 10.11.1 10.11.0 10.10.2 10.10.1 10.10.0 10.9.1 trunk 10.0.0 10.0.1 10.1.0 10.1.1 10.1.2 10.1.3 10.1.4 10.2.0 10.2.1 10.2.2 All 62 releases
acymailing / back / Partial / forms / recaptcha.php

recaptcha.php in AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress trunk, at back/Partial/forms/recaptcha.php

18 lines 746 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- View file, its variables are local to the include scope, not true globals.
3 defined('ABSPATH') || die('Restricted Access');
4
5 use AcyMailing\Classes\UserClass;
6 use AcyMailing\Helpers\CaptchaHelper;
7
8 $currentUserEmail = acym_currentUserEmail();
9 $userClass = new UserClass();
10 $identifiedUser = $userClass->getOneByEmail($currentUserEmail);
11
12 if (empty($identifiedUser) && $config->get('captcha', 'none') !== 'none' && acym_level(ACYM_ESSENTIAL)) {
13 echo '<div class="onefield fieldacycaptcha" id="field_captcha_'.esc_attr($form->form_tag_name).'">';
14 $captcha = new CaptchaHelper();
15 $captcha->display($form->form_tag_name);
16 echo '</div>';
17 }
18