';
$html .= '';
// The element is optional, e.g. should be missing on the settings page.
if (false === $is_without_validation_element) {
$html .= '';
$html .= esc_html__('Please verify that you are human.', 'mailchimp-for-wp');
$html .= '
';
}
$html .= '';
return $html;
}
/**
* @return void
*/
public function maybe_enqueue_captcha_js()
{
if (false === $this->is_in_use) {
return;
}
// do not use wp_enqueue_module() because it doesn't work on the login screens.
wp_enqueue_script(
'prosopo-procaptcha',
self::SCRIPT_URL,
[],
null,
[
'in_footer' => true,
'strategy' => 'defer',
]
);
$this->print_captcha_js();
}
/**
* @param array