Old question, but for anyone that’s looking to delete data from the database
Standard field names including top level repeaters and other fields with sub fields, there are two fields that need to be deleted
for repeater and other sub fields
for nested repeaters
the above continues with each nesting level
the following like value will remove all of the fields and sub fields, be careful with collisions with other fields, back up your DB first.
DELETE FROM wp_postmeta WHERE meta_key LIKE '%'.$field\_name.'%';
You should escape underscores as it is a character in SQL that stands for any one character.
fieldXname will both be removed if you do not escape the
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!
ACF PRO’s Flexible Content field allows you to create smaller pieces of UI and compose them into whole flexible patterns. In our latest article, we show how to use it to create swappable site sections and integrate it all in a theme.https://t.co/ZRocH8oJSp— Advanced Custom Fields (@wp_acf) January 24, 2023
© 2023 Advanced Custom Fields.