plugin_locale хук-фильтр . ACF 5.7.10
Filters a plugin's locale.
Использование
add_filter( 'plugin_locale', 'filter_function_name_4168', 10, 2 ); function filter_function_name_4168( $locale, $domain ){ // filter... return $locale; }
- $locale(строка)
- The plugin's current locale.
- $domain(строка)
- Text domain. Unique identifier for retrieving translated strings.
Список изменений
С версии 5.7.10 | Введена. |
Где вызывается хук
plugin_locale
acf/includes/l10n.php 117
$locale = apply_filters( 'plugin_locale', acf_get_locale(), $domain );