Update Custom Field


Well-known member
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
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).