Hello!
I created an optional email xProfile field for pass recovery purposes. Worked nice with the single line text field, but not with plugin's html5 email.
As you can see here I'm getting the field ID and checking if its empty or valid email:
$field_id = 'My Custom Email Field';
$user_email = xprofile_get_field_data( $field_id, $user_data->id );
//Check if empty or valid email
if ( !is_email( $user_email ) ) { $user_email = $user_data->user_email;
}
[...]
My guess is that is_email
isn't working with plugin's html5 email field... or may I be missing something getting that field ID
https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/