-
-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pods extended User cannot save first_name, last_name #4041
Comments
@lougreenwood what happens to $pod above this? |
In addition @sc0ttkclark for your reference, these fields also are not available in the magic tag syntax/template reference, which probably means we're not 'presenting' them. Correction: They're actually available as they're user_meta, they're just not 'visible'. I had to traverse into them through the relationship field to users. |
save() is called by a hook which is triggered when saving another Pod (let's called it
I have a wrapper which I use as an interface to updating a pod, this is the code which my internal code calls to update the field:
|
My test code works for this. So it looks like there's another problem going on here. Have you extended the Users pod yet? You need to extend that wp object with Pods first before you can start saving fields to it with pods(). |
@sc0ttkclark Yep, Users has been extended. I have an idea for how to reproduce, we can discuss it in Slack as some details are private. |
I'm having the same issue, when i display a form for user pod (extended wp user) the first name, last name, description fields don't show. |
@rosalynpoort please create a new issue for that, this is a separate issue about saving, yours is an issue about the form fields shown by default for users. |
Could be the new updates on W3 Total Cache causing the issue or because of certain cache configuration. I cleared cache and disabled W3TC plugin and this issue went away. |
Ah could be related to issue #4005 when using redis |
Do you still have the test code? Curious to see what field name you use for first name & last name... Just stumbled into this bug again |
Took me long enough, finally debugged this deep enough to find the issue! |
When extending wp_user with pods, $pod->save() does not save the first_name or last_name values.
Doesn't result in a saved user first/last name.
The text was updated successfully, but these errors were encountered: