Hi, we are making an addon, that cleans up all acf related meta fields, that are no longer registered in dashboard.
Logic is:
We query all meta_keys which have a copy with underscore.
Then we check if referenced in underscore meta field is still registered
if not - we remove it.
However, we found out, that fields that are registered from code, not from dashboard are also removed this way.
Is there a recommended way for "code registered" fields to appear in the database as well? or any other recommendation to avoid them being deleted?
Hi, we are making an addon, that cleans up all acf related meta fields, that are no longer registered in dashboard.
Logic is:
However, we found out, that fields that are registered from code, not from dashboard are also removed this way. Is there a recommended way for "code registered" fields to appear in the database as well? or any other recommendation to avoid them being deleted?
Thank you!