diff --git a/includes/core/um-actions-form.php b/includes/core/um-actions-form.php index 63f5c868..49aab0d0 100644 --- a/includes/core/um-actions-form.php +++ b/includes/core/um-actions-form.php @@ -732,10 +732,12 @@ function um_submit_form_errors_hook_( $args ) { if ( $args[ $key ] != '' ) { - if( ! ctype_alpha( str_replace(' ', '', $args[$key] ) ) ){ - UM()->form()->add_error( $key , __('You must provide alphabetic letters','ultimate-member') ); + if ( ! preg_match( '/^\p{L}+$/u', str_replace( ' ', '', $args[ $key ] ) ) ) { + UM()->form()->add_error( $key, __( 'You must provide alphabetic letters', 'ultimate-member' ) ); } + } + break; case 'lowercase':