user_meta creating users
-
Hi, I’m trying to use the user_meta feature to create additional properties when creating a new user, but I’m not sure of how to send the data.
I’ve set the name of the properties in “Allowed user_meta keys on create user” and I understand I have to send a POST to this url “https://mywordpressdomain/?rest_route=/simple-jwt-login/v1/users&email=NEW_USER_EMAIL&password=NEW_USER_PASSWORD&AUTH_KEY=AUTH_KEY_VALUE”
I’ve tried a query string parameter named “user_meta” containing plain JSON and urlencoded JSON, I’ve tried form-data, x-www-form-urlencoded and raw plain text, but it never does anything.
I’d really appreciate a small example of how to send the user_meta.
Thank you.
The topic ‘user_meta creating users’ is closed to new replies.