Home › Forums › General Issues › Preload a field group with a json › Reply To: Preload a field group with a json
In any case,
You can alter a value using an acf/load_value hook. In your filter you would test to see if there is already a value and if not then you can substitute some other value.
If you want the substituted value to be saved then you would use the update_field() function to do that inside of your acf/load_value filter.
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.