Skip Navigation

[Resolved] update_user_meta not working

This support ticket is created 7 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 2 replies, has 2 voices.

Last updated by AlexW8321 7 years ago.

Assisted by: Shane.

Author
Posts
#522701

I am trying to: update a user profile using update_user_meta() but its not working. Please see screenshot. hidden link
I'm using the same keys, which are the types slugs... latitude and longitude. They both work fine within types_render_usermeta("longitude", array( "user_current" => true )); and types_render_usermeta("latitude", array( "user_current" => true ));

#522726

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Alex,

Thank you for contacting our support forum.

Assuming that these fields were created using our Types plugin, this would mean that the fields as stored in the database would have 'wpcf-' as a prefix to the slug.

What you can do is to prefix the names with the 'wpcf-' and it should start working.

Please let me know if this helps.
Thanks,
Shane

#522747

Thank you @shane.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.