Home › Forums › Backend Issues (wp-admin) › How to lock/disable user meta information once filled and submitted › Reply To: How to lock/disable user meta information once filled and submitted
Interesting…
ACF does have a filter called ‘acf/update_value’ which you could hook into.
This filter also sends through the $field array which it is saving to, so you can look at the $field[‘key’] as a way to run code specific to your desired field.
Basically, you could load the previous value, and if a value was found, don’t allow the new ‘different’ value to be saved by updating $value to the old value.
Does that make sense?
You will find docs on the filter over on the docs page.
Then you can use JS to add a simple disabled attribute to in the input for the client’s visual
Thanks
E
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.