sanitize_locale_name
sanitize_locale_name ( $locale_name )
Parameters:- (string) locale_name The locale name to be sanitized.
Returns:- (string) The sanitized value.
Defined at: - Introduced in WordPress: 6.2.1
- Deprecated in WordPress: —
Description
Strips out all characters not allowed in a locale name.