Home › Forums › General Issues › Empty previous entered field-data on save? › Reply To: Empty previous entered field-data on save?
have the filter run after ACF (priority 20)
Then you get use get_field to get the radio field and update_field if you want to clear it but leave the DB entries.
If you want to completely delete the db entry you’ll need to use delete_post_meta() WP function and you will need to delete 2 values.
'your_field_name'
AND
'_your_field_name'
If you are doing this for repeater fields or other nested fields you should look at the database to see how ACF names these types of fields.
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.