captcha()
protected final function captcha()
This function automatically includes the required JavaScript for a CAPTCHA, and provides you with the HTML code needed to display the CAPTCHA.
Can be used in your plugin's init()
method, from Zenario 7.0.0 onwards.
You should place the code this function returns place this HTML code in a Merge Field in a form in your Plugin.
It is safe to use both when displaying a page normally and when refreshing via AJAX.
$mergeFields['Captcha'] = $this->captcha();