Got the same problem, and found easy solution modifying plugin code.
On your hosting:
1. Go to /home/<YOUR-DOMAIN.COM>/wp-content/plugins/wp-rest-user/public and open in editor class-wp-rest-user-public.php
2. Find line (should be line 144):
$response[‘message’] = __(“User ‘” . $username . “‘ Registration was Successful”, “wp-rest-user”);
3. Add following line after to get user id:
$response[‘id’] = $user_id;
After it, your JSON responce will look like this:
{
“code”: 200,
“message”: “User ‘John_tttt’ Registration was Successful”,
“id”: 91
}
-
This reply was modified 5 years ago by antonsv.