Skip Navigation

[Resolved] I need to accept usernames in Korean characters

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by jorgeB-3 1 year, 4 months ago.

Assisted by: Luo Yang.

Author
Posts
#2507323

Hi,

I have designed an user registration form for users who need to enter their usernames in Korean characters.

I am aware that WordPress doesn't accept non-latin characters but I have implemented this filter which works properly when a user is created at the back-end:

add_filter('sanitize_user', 'non_strict_login', 10, 3);
function non_strict_login( $username, $raw_username, $strict ) {
if( !$strict )
return $username;
return sanitize_user(stripslashes($raw_username), false);
}

However, in the registration form at the front-end there is still a validation.

Is there any way to avoid this registration form username validation?

Thank you so much.

#2507955

Hello,

There isn't such kind of built-in feature within Toolset or WordPress by default, and it is not safe to use sanitize_user filter as you mentioned above, this will conducts other unexpected result.

In my opinion, you can use's nick name to store the Korean characters.

#2508043

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.