Support

Account

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

  • Hi @sixfootjames

    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