Tell us what you are trying to do?
Hi, Have a userform thats working fine but in that form i have a select to a custom field select from where i can select roles. Works fine but hereafter i want to save the select to wp_capabilities, but toolset overwrite and insert in front of str: s:32:" and end of string a ";
in cred_save_data i have tried,
After this insert wp_usermeta->meta_key->wp_capabilities->meta_value->s:32:"a:1:{s:14:"administration";b:1;}";
how to prevent toolset from setting this in front s:32:" and this in end ";
THINK THE PROBLEM SOMEHOW IS THE SETTINGS IN USER FORM "ROLE OF THE USER TO CREATE..
this another update works find:
So a solution maybe in cred_before_save_data to overwrite Role?
Is there any documentation that you are following? https://toolset.com/forums/topic/update-user-custom-field/
Is there a similar example that we can see?
user protected
What is the link to your site?