Home › Forums › Backend Issues (wp-admin) › Persisting ACF Custom Field Type Value to a Database › Reply To: Persisting ACF Custom Field Type Value to a Database
When you say “ACF Starter Kit”, if you are talking about the ACF Field Type Template then some explanation.
There is not need to actually create filters for the methods that are included in your new field type. These filters and actions will be automatically called by ACF because all of these actions are added by ACF for every field type.
ACF also uses the same filters that are supplied for use to use to do what it does.
For example, the acf/update_field hook not only calls custom filters added by others in themes but also runs these filters associated with each field type.
I’m not exactly sure what your looking for, but there is not need for you to actually update the post meta with a value in your field. ACF will do this automatically.
$original_value will not contain the old value from the DB, this will contain the value that was originally submitted while $value will contain the results of any other acf/update_value filters that have acted on the submitted value.
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.