امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
We know we can get user custom field value from the '$user' object -
Code:
We also know we can easily update any user field using 'fastUpdate' method -
Code:
What is the easiest way to update user custom field value? For example, I want to update the user 'Facebook' field value. How can I achieve that programmatically?
Code:
$facebook_url = $user->Profile->custom_fields->facebook;We also know we can easily update any user field using 'fastUpdate' method -
Code:
$user->fastUpdate('user_state', "valid");What is the easiest way to update user custom field value? For example, I want to update the user 'Facebook' field value. How can I achieve that programmatically?
