Skip Navigation

[Resolved] Admin: delete all field values for User Field Group for specific user

This support ticket is created 6 years, 3 months 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by GamX 6 years, 3 months ago.

Assisted by: Waqar.

Author
Posts
#1137797

Hi, is there a way for the administrator (on the back-end) to delete all Toolset field values (set to null) within a specified User Field Group for a specific user, perhaps within the User Profile (or elsewhere)?

If this is possible but requires a different way to specify which fields we're talking about, please let me know - e.g., delete all of this user's values for Toolset fields that begin with "wpcf-1-1"

I am happy to provide login info if desired. My site is not yet live.

Thanks!

#1138153

Hi there,

Thank you for contacting us and I'll be happy to assist.

I'm afraid, there is no built-in function or option available to reset the selective user fields for a specific user, in bulk.

To perform this action, you'll need custom programming that first gets all user meta through "get_user_meta" function, and then updates the values of only the selective meta, to null/empty through "update_user_meta" function.

Following are the links to reference pages for both these functions:

https://codex.wordpress.org/Function_Reference/get_user_meta
https://codex.wordpress.org/Function_Reference/update_user_meta

For a more personalized assistance around custom programming, you can consider hiring a professional from our list of recommended consultants:
https://toolset.com/contractors/

I hope this helps.

regards,
Waqar

#1141477

Can you please submit this as a feature request? Thank you!