I am wondering if I can use the Register Rest Api without captcha and terms & conditions even if these are required through wordpress dashboard? Can i change this somehow for the api requests as I am currently getting these errors?
{
"error": {
"code": 400,
"errors": {
"required": {
"message": ""_terms" field is required."
},
"0": {
"message": "Captcha is invalid."
}
}
}
}
Yes, you can try to pass the “_terms” parameter with “true” or “1” value with the request, and also add a code snippet to unhook the reCaptcha callback from the form validation hook (e.g. with a condition that works for your external request).
Thank you so much for the quick answer, yes it worked perfectly for the first part regarding the _terms, but not sure how can I do that for the reCaptcha?