Mass importing json data into custom fields (postmeta)
update_field() is ACF function so I would guess the issue is with it. From quick look at source it calls get_field_object() and so on, so environment might not be sufficient for it to work correctly during import. There is no “half” state for native meta data, either it exists in database or it doesn’t. You … Read more