Home › Forums › Add-ons › Repeater Field › Remove sub_field? › Reply To: Remove sub_field?
There’s actually a new API function release with ACF 5.2.7 called delete_sub_field()
which you can use. It does however set it to null thus not completely deleting the entry.
It takes the field key and the post ID (or user id or whatever).
Try it out!
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.