I want to use a remote system to create users in wordpress and I want to be able to use a UUID that is stored in a Custom Field in user_meta. The remote system allows me to pass curl commands to wordpress.
Toolset allows me to create the custom user field called "uuid." I can access the field in Profile and edit it. I can find it in the user_meta table, named "wpcf-uuid."
However, I cannot pass data into when I create a user. The command below works to create a user but it does not create a user_meta record. I've seen information online that suggests I have to use register_meta() to be able to access custom fields using REST API.
Is this necessary? Does toolset automatically register fields?
If not, where should I register this? Also, when do I register it?
Is the syntax I'm using below correct?
Please note that this is custom code and that is beyond the scope of our support policy. If you are not sure how to do it, please consult with pro REST API devs. You can even contact Toolset Certified contractors:
=> https://toolset.com/contractors/
Thanks for the pointer to the settings. I've modified the settings and I see that there is a toolset-meta element in the response shown below and trimmed for readability. Please keep reading as I don't want custom code support. I simply want to know how to utilise Toolset.
1. Having turned the Toolset settings for REST-API on, is it still necessary to register meta fields?
2. If Toolset outputs meta field groups in a special toolset-meta element, should we also be targeting toolset-meta when we are generating data?
3. Do you have documentation around this, or at the very least, documentation of the Toolset code base that you can point me to?
We just release Toolset Types version 3.4.10 that contains the official fix for this issue.
We always recommend running your site with the latest stable release plugin version and try to resolve your issue.
*** Please make a FULL BACKUP of your database and website.***
Could you please update ALL Toolset plugins to it's latest officially released version. You can download the latest plugin release from your accounts page:
=> https://toolset.com/account/downloads/