• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Check whether custom user field (really) exists? (no cache)


Active member
(moved from a bug report)

If I have an add-on which uses a custom user field, how can I check whether the field exists?
array_key_exist does not really help, because it only checks the cache in this case.

Without this check the field is still considered valid even when the field was in fact deleted by the admin.