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

Update Custom Field

nrep

Well-known member
#1
I'm creating an add-on where I need to update a custom field within my controller - is there a way to do with without manually running a MySQL query, as this wouldn't update the user cache at the same time?

Any guidance would be most appreciated :).
 

Chris D

XenForo developer
Staff member
#2
The way to do it is already all there in the code. Think about someone being on the Account / Personal Details page and saving a value there. You will want to basically do exactly the same thing (albeit on a subset of fields, rather than an entire group of them).