Home › Forums › Invisible reCaptcha › How-To and Troubleshooting › validate recaptcha from AJAX + REST API › Reply To: validate recaptcha from AJAX + REST API
June 22, 2017 at 9:56 pm
#4552

MihChe
Keymaster
Hi,
Just submit your form through Ajax (POST request) and on the server side use this:
if( ! apply_filters(‘google_invre_is_valid_request_filter’, false) )
{
// handle error here
}
else
{
// continue with your logic
}
Mihai