Hi
I have an ACF image field (image_classe_energie) which is populated during import using an iwp function based on the value of another ACF field.
Basically the iwp function will check the value of another imported ACF text value and assign a WordPress image to the field based on that value (looks like if ($classe_energie == “A”) $image_classe_energie = “12102”;)
The problem is that if the record is deleted (ie the record no longer exists in the XML file) the image is deleted in WordPress. And i want to keep the “Remove related media” checkbox as other imported images are no longer needed …
Do you know how i can do that please ?
Regards
Guillaume