Home › Forums › Front-end Issues › Gallery field Front end role user › Reply To: Gallery field Front end role user
Even if you use a gallery field the images will stay in the media library when removed from the gallery. To avoid this in either case you would need to create a filter that removed files no longer present in the fields and you’d need to compare the old values of the field with the new values to figure out what media needs to be deleted. For a front end form this could be done in an acf/pre_save_post filter.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.