plugin_locale WordPress Filter Hook
The plugin_locale Wordpress hook is used to filter the locale used for a specific plugin. This can be useful if a plugin is only available in certain languages, or if you want to use a different language for a specific plugin than the rest of your site.
apply_filters( 'plugin_locale', string $locale , string $domain ) #
Filters a plugin’s locale.
Parameters
- $locale
(string)The plugin'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. |