• Resolved Dragan Maric

    (@dmaricn)


    I know that WP does not allow special characters, but I solved it with the help of this plugin (Restrict Usernames Emails Characters), but when I turn on the UM plugin, then it does not allow me to register with a username that has this character in it.

    can anyone help me see on the forum that I have a lot of topics but no one has been able to solve this problem

    I use the UM Version 2.1.6 |

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @dmaricn,

    I’m afraid, currently it’s not possible and would require some custom coding and customization of plugin files.

    Regards

    Thread Starter Dragan Maric

    (@dmaricn)

    thanks ??

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @dmaricn

    You can modify the UM safe username regex using the following filter hook:

    
    add_filter("um_validation_safe_username_regex", function( $regex_safe ){
      
      // now you can add your own regex
     //  $regex_safe = "/\A[\w\-\.]+\z/"; //default value
    
      return $regex_safe;
    });
    

    What you need to do now is to find a regex that will match your username requirements.

    Regards,

    Thread Starter Dragan Maric

    (@dmaricn)

    thanks …
    if i got it right i should put this in 115 row

    	add_filter("um_validation_safe_username_regex", function( $regex_safe ){
      
                        $regex_safe = "/? ? ü ?/";
    
                     return $regex_safe;
    });

    thank you very much

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Special characters ? in username’ is closed to new replies.