W3cubDocs

/WordPress

apply_filters( 'locale', string $locale )

Filters the locale ID of the WordPress installation.

Parameters

$locale

(string) The locale ID.

Source

File: wp-includes/l10n.php

View on Trac

Changelog

Version Description
1.5.0 Introduced.

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