sanitize_locale_name( string $locale_name )
Strips out all characters not allowed in a locale name.
Parameters
- $locale_name
-
(Required) The locale name to be sanitized.
Return
(string) The sanitized value.
Source
File: wp-includes/formatting.php
Changelog
Version | Description |
---|---|
6.2.1 | Introduced. |