locale WordPress Filter Hook
The WordPress locale hook is a great way to change the way your site is displayed to users in different countries. By using this hook, you can change the language, timezone, and currency displayed on your site. This is a great way to make your site more accessible to users in different parts of the world.
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
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |