Is there any function to get a list of all the field names and slugs from a User Field Group I added? The Types API seems to only have methods for displaying fields.
If there is no function, and if the data is stored in the db, can you let me know which tables it is in?
thanks!
Hi, it's actually not very straightforward because of how the information is stored. User field groups are stored in the posts table as post type "wp-types-user-group", and the custom fields are stored in the options table as serialized data in an entry called wpcf-usermeta. There is no public API for querying these directly, and I definitely do not recommend manipulating them manually.
As a suggestion, it might be easier and more organized to export information from Toolset > Import / Export > Export Types data. This will give you an organized XML document with those specs included (as well as some other information you can filter out). If there's anything else I can clarify please let me know.
Hi, thanks for the reply. I see the data now.
I might use that data, since it's just for a client's admin area, showing them all the user meta_keys they can query on through my plugin.
My issue is resolved now. Thank you!