W3cubDocs

/WordPress

apply_filters( ‘sanitize_locale_name’, string $sanitized, string $locale_name )

Filters a sanitized locale name string.

Parameters

$sanitizedstring
The sanitized locale name.
$locale_namestring
The locale name before sanitization.

Source

return apply_filters( 'sanitize_locale_name', $sanitized, $locale_name );

Changelog

Version Description
6.2.1 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/sanitize_locale_name