AnsPress_reCcaptcha::verification_response()
Description #
Send ajax response if capatcha verification fails.
Source #
File: addons/free/recaptcha.php
public static function verification_response() { if ( ap_show_captcha_to_user() && false === SELF::verify_recaptcha() ) { ap_ajax_json( array( 'form' => $_POST['ap_form_action'], 'message' => 'captcha_error', 'errors' => array( 'captcha' => __( 'Bot verification failed.', 'anspress-question-answer' ) ), ) ); } }
Expand full source code Collapse full source code View on GitHub: addons/free/recaptcha.php:79
Add your comment