On this page
apply_filters( 'plugin_locale', string $locale, string $domain )
Filters a plugin’s locale.
Parameters
$localestring-
The plugin's current locale.
$domainstring-
Text domain. Unique identifier for retrieving translated strings.
Source
File: wp-includes/l10n.php. View all references
$locale = apply_filters( 'plugin_locale', determine_locale(), $domain );
Related
Used By
| Used By | Description |
|---|---|
| load_plugin_textdomain() wp-includes/l10n.php | Loads a plugin’s translated strings. |
| load_muplugin_textdomain() wp-includes/l10n.php | Loads the translated strings for a plugin residing in the mu-plugins directory. |
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/plugin_locale