theme_locale WordPress Filter Hook
The theme_locale Wordpress hook is used to change the language setting for a WordPress site. This can be useful if you want to create a multilingual site or if you want to change the language of your site based on the user's location.
apply_filters( 'theme_locale', string $locale , string $domain ) #
Filters a theme’s locale.
Parameters
- $locale
(string)The theme's current locale.
- $domain
(string)Text domain. Unique identifier for retrieving translated strings.
Source
File: wp-includes/l10n.php
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |