Home › Forums › Backend Issues (wp-admin) › Saving Default Values › Reply To: Saving Default Values
This is a very old post. In fact, the filter that I posted 3 years ago will not actually do anything and never would have.
In order to have ACF return default values when a field has never been saved to the DB you must use the field key. This is the case with any action or filter for any field that has never been saved.
All ACF functions really operate on the field key. When you use the field name ACF must look up the field key in the DB. If that field has never been save/updated ACF cannot find the field key. Without the field key ACF cannot get field settings for the field.
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’re reaching out to our multilingual users to ask for help in translating ACF 6.1. Help make sure the latest features are available in your language here: https://t.co/TkEc2Exd6U— Advanced Custom Fields (@wp_acf) May 22, 2023
© 2023 Advanced Custom Fields.