Did you ever figure this out?
I can’t seem to save checkbox info with xprofile_set_field_data
I tried serialize($field_value) but nothing.
Any other ideas?
Nope 🙁
Any help is still appreciated.
Got it 🙂
All you need is the value of the checkbox.
<input id="nieuwsbrief" type="checkbox" value="newsletter"
You can find/set this value in the users –> profile fields page
Then just set the value of $newsletter to ‘newsletter’ when the box is checked or any other value if it’s not and use:
$meta_update = xprofile_set_field_data( '<em>name or id of field</em>', $user_id, $newsletter);
Glad to answer any questions