We know we can get user custom field value from the '$user' object -
We also know we can easily update any user field using 'fastUpdate' method -
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?