Home › Forums › Add-ons › Repeater Field › Is there no 'simple' delete_sub_field() function? › Reply To: Is there no 'simple' delete_sub_field() function?
Thanks Jon. I was aware of those two solutions but I should have included them as links in my post to make it obvious. My apologies for laziness!
In my eyes, delete_sub_field
is not a valid sub-field version of delete_field
due to it setting the value to null rather than deleting the data, which over time will create a lot of empty and unnecessary custom field data.
I have coded my own workaround for now but I was surprised to find this wasn’t a core function in this otherwise super-thorough mega plugin. 😀
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.