Hi @willburholt … can you be a little more specific here? Let me know what you’re trying to accomplish and I’d be happy to help out.
I’ve added a custom database connection in Auth0 that has custom attributes. How can those attributes be saved to the WordPress profile upon login?
When someone logs in, WordPress pulls all of the user profile data from Auth0, which can be a lot. If you go to Users in the Auth0 dashboard and click on a user there, basically everything under “Metadata” and “Identity Provider Attributes” is saved. So it’s likely that you have it in usermeta.
That said, we don’t have an out-of-the-box way to display or edit that data at the moment. Displaying is fairly simple for the key/value types (picture, name, last login) but the custom metadata can be structured in many different ways to how it should look on the profile is hard to guess.
If you’re working with a developer, that data is saved to a wp_auth0_objmeta key in the usermeta table. You can see how that can be pulled out here:
https://github.com/joshcanhelp/auth0-profile/blob/master/auth0-profile.php#L169