Se hace con el hook: xprofile_data_before_save, en mi caso he tenido que especificarle parámetros y prioridad para que funcione.
add_action( 'xprofile_data_before_save', 'custom_bp_profile_validate',0,1 );
Se hace con el hook: xprofile_data_before_save, en mi caso he tenido que especificarle parámetros y prioridad para que funcione.
add_action( 'xprofile_data_before_save', 'custom_bp_profile_validate',0,1 );