verify_token($successToken); if ( $response === false ) { $approved = new WP_Error( 'adcaptcha_error', __( 'Incomplete captcha, Please try again', 'adcaptcha' ), 400 ); } return $approved; } // Renders the captcha before the submit button public function captcha_trigger_filter($submit_field) { return AdCaptcha::captcha_trigger() . $submit_field; } }