27); // An array of additional HTML tag attributes to pass to the text input tag // $options['image_id'] = 'captcha_image'; // change the name of the alt text of the image // $options['image_attributes'] = array('data-id'=>27); //An array of additional HTML tag attributes to pass to the captcha image tag // $options['error_html'] = '
*Some important text!!!
'; //Optional HTML markup to be shown above the text input field // $options['namespace'] = 'some_namespace'; //The optional captcha namespace to use for showing the image. Namespaces are for using multiple captchas on the same page. echo "
\n"; echo Securimage::getCaptchaHtml($options); echo "\n
\n"; ?> check($captcha) == false) { return new WP_Error("Captcha Invalid", __("ERROR: You are a bot. If not, then enable JavaScript")); }else{ return $user; } } add_filter("wp_authenticate_user", "verify_login_captcha", 10, 2);