You can add custom xprofile Fields in Users > Profile Fields (BuddyPress extended profiles must be enabled). Once created you can the read and write them from code

Read an xprofile field

$MyString = xprofile_get_field_data( 'UserType', bp_loggedin_user_id(), $format = 'array' );

Write an xprofile field

xprofile_set_field_data('UserType', bp_loggedin_user_id(), $MyString);
Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.

Comments

Your email address will not be published. Required fields are marked *