S2member saves custom field values as a Serialized array in user_meta.
If an integer value is saved via code like example below then s2member does not display new value in User Data Columns in Admin Dashboard. It only displays String Values. The integer value is saved but not displayed.
$custom_fields[‘user_credit’] = 10; //Integer does not display correctly in s2member admin user dash
update_user_option($user_id, ‘s2member_custom_fields’, $custom_fields);
Use this instead otherwise saved as serialized integer and not displayed correctly
$value = 10;
$custom_fields[‘user_credit’] = strval($value);
update_user_option($user_id, ‘s2member_custom_fields’, $custom_fields);