HI Guys,
I am building a PHP script to update the custom fields oCreated in types. I am able to update the single custom fields but I am having issues updating the checkboxes custom field group.
I get the state of the checkboxes from a separate API. Once i get the values of the checked boxes i would like to pass their checked state to a Types checkboxes custom field group.
I have been able to determine how to target each check option using:
require_once WPCF_EMBEDDED_INC_ABSPATH . '/fields.php';
$field = wpcf_admin_fields_get_field('member-category');
But I am having trouble detirmening the best way to pass the checked state to the individual options in my checkboxes group.
I receive an array from the api that i can format how ever necessary to achieve the checked state transfer.
I found the location in the wp databse where the checkboxes custom fields are stored. The data is serialized and stored in one field.
Do i have to serialize my data and update that field, or is there a better solution to achive this.
Any help appreciated.
Thank you.
I reposted my question in paid suport. #235763