That doesn’t seem to work. If I dump the $value variable before the line
upate_post_meta($inserted_post_id, $key, $value);
It’s the key of the field, not the field structure/array. But if I try to pass the $field as the last argument of update_post_meta()
, it doesn’t work.