array(
'secret' => $secret_key,
'response' => $_POST['g-recaptcha-response']
)
)
);
$data = wp_remote_retrieve_body($response);
$data = json_decode($data);
if (isset($data->success) && $data->success) {
return $user;
}
}
return new WP_Error(wp_kses_post('empty_captcha', 'ERROR: Please confirm you are not a robot', WEBLIZAR_ACL));
}
function acl_captcha3_form() {
?>
array(
'secret' => $secret_key_v3,
'response' => $_POST['g-recaptcha-response']
)
)
);
$data = wp_remote_retrieve_body($response);
$data = json_decode($data);
if (isset($data->success) && $data->success && isset($data->score) && $data->score > 0 && isset($data->action) && 'login' === $data->action) {
return $user;
}
}
return new WP_Error(wp_kses_post('empty_captcha', 'ERROR: Please confirm you are not a robot', WEBLIZAR_ACL));
}
?>